Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <source.ruby><declaration.class.ruby><keyword.control.class.ruby>class</keyword.control.class.ruby> <entity.name.class.ruby>CategoriesController<entity.other.inherited-class.ruby> < ApplicationController</entity.other.inherited-class.ruby></entity.name.class.ruby></declaration.class.ruby>
- <declaration.function.method.without-arguments.ruby> <keyword.control.def.ruby>def</keyword.control.def.ruby> <entity.name.function.ruby>index</entity.name.function.ruby></declaration.function.method.without-arguments.ruby>
- list
- render <constant.other.symbol.ruby>:action</constant.other.symbol.ruby> => <string.quoted.single.ruby>'list'</string.quoted.single.ruby>
- <keyword.control.ruby>end</keyword.control.ruby>
- <declaration.function.method.without-arguments.ruby> <keyword.control.def.ruby>def</keyword.control.def.ruby> <entity.name.function.ruby>list</entity.name.function.ruby></declaration.function.method.without-arguments.ruby>
- <variable.other.readwrite.instance.ruby>@category_pages</variable.other.readwrite.instance.ruby>, <variable.other.readwrite.instance.ruby>@categories</variable.other.readwrite.instance.ruby> = paginate <constant.other.symbol.ruby>:categories</constant.other.symbol.ruby>, <constant.other.symbol.ruby>:per_page</constant.other.symbol.ruby> => <constant.numeric.ruby>10</constant.numeric.ruby>
- <keyword.control.ruby>end</keyword.control.ruby>
- <declaration.function.method.without-arguments.ruby> <keyword.control.def.ruby>def</keyword.control.def.ruby> <entity.name.function.ruby>show</entity.name.function.ruby></declaration.function.method.without-arguments.ruby>
- <variable.other.readwrite.instance.ruby>@category</variable.other.readwrite.instance.ruby> = <variable.other.constant.ruby>Category</variable.other.constant.ruby>.find(params[<constant.other.symbol.ruby>:id</constant.other.symbol.ruby>])
- <keyword.control.ruby>end</keyword.control.ruby>
- <declaration.function.method.without-arguments.ruby> <keyword.control.def.ruby>def</keyword.control.def.ruby> <entity.name.function.ruby>new</entity.name.function.ruby></declaration.function.method.without-arguments.ruby>
- <variable.other.readwrite.instance.ruby>@category</variable.other.readwrite.instance.ruby> = <variable.other.constant.ruby>Category</variable.other.constant.ruby>.<keyword.other.special-method.ruby>new</keyword.other.special-method.ruby>
- <keyword.control.ruby>end</keyword.control.ruby>
- <declaration.function.method.without-arguments.ruby> <keyword.control.def.ruby>def</keyword.control.def.ruby> <entity.name.function.ruby>create</entity.name.function.ruby></declaration.function.method.without-arguments.ruby>
- <variable.other.readwrite.instance.ruby>@category</variable.other.readwrite.instance.ruby> = <variable.other.constant.ruby>Category</variable.other.constant.ruby>.<keyword.other.special-method.ruby>new</keyword.other.special-method.ruby>(params[<constant.other.symbol.ruby>:category</constant.other.symbol.ruby>])
- <variable.other.readwrite.instance.ruby>@category</variable.other.readwrite.instance.ruby>.creation_date = <variable.other.constant.ruby>Time</variable.other.constant.ruby>.now
- <keyword.control.ruby>if</keyword.control.ruby> <variable.other.readwrite.instance.ruby>@category</variable.other.readwrite.instance.ruby>.save
- flash[<constant.other.symbol.ruby>:notice</constant.other.symbol.ruby>] = <string.quoted.single.ruby>'Category was successfully created.'</string.quoted.single.ruby>
- redirect_to <constant.other.symbol.ruby>:action</constant.other.symbol.ruby> => <string.quoted.single.ruby>'list'</string.quoted.single.ruby>
- <keyword.control.ruby>else</keyword.control.ruby>
- render <constant.other.symbol.ruby>:action</constant.other.symbol.ruby> => <string.quoted.single.ruby>'new'</string.quoted.single.ruby>
- <keyword.control.ruby>end</keyword.control.ruby>
- <keyword.control.ruby>end</keyword.control.ruby>
- <declaration.function.method.without-arguments.ruby> <keyword.control.def.ruby>def</keyword.control.def.ruby> <entity.name.function.ruby>edit</entity.name.function.ruby></declaration.function.method.without-arguments.ruby>
- <variable.other.readwrite.instance.ruby>@category</variable.other.readwrite.instance.ruby> = <variable.other.constant.ruby>Category</variable.other.constant.ruby>.find(params[<constant.other.symbol.ruby>:id</constant.other.symbol.ruby>])
- <keyword.control.ruby>end</keyword.control.ruby>
- <declaration.function.method.without-arguments.ruby> <keyword.control.def.ruby>def</keyword.control.def.ruby> <entity.name.function.ruby>update</entity.name.function.ruby></declaration.function.method.without-arguments.ruby>
- <variable.other.readwrite.instance.ruby>@category</variable.other.readwrite.instance.ruby> = <variable.other.constant.ruby>Category</variable.other.constant.ruby>.find(params[<constant.other.symbol.ruby>:id</constant.other.symbol.ruby>])
- <keyword.control.ruby>if</keyword.control.ruby> <variable.other.readwrite.instance.ruby>@category</variable.other.readwrite.instance.ruby>.update_attributes(params[<constant.other.symbol.ruby>:category</constant.other.symbol.ruby>])
- flash[<constant.other.symbol.ruby>:notice</constant.other.symbol.ruby>] = <string.quoted.single.ruby>'Category was successfully updated.'</string.quoted.single.ruby>
- redirect_to <constant.other.symbol.ruby>:action</constant.other.symbol.ruby> => <string.quoted.single.ruby>'show'</string.quoted.single.ruby>, <constant.other.symbol.ruby>:id</constant.other.symbol.ruby> => <variable.other.readwrite.instance.ruby>@category</variable.other.readwrite.instance.ruby>
- <keyword.control.ruby>else</keyword.control.ruby>
- render <constant.other.symbol.ruby>:action</constant.other.symbol.ruby> => <string.quoted.single.ruby>'edit'</string.quoted.single.ruby>
- <keyword.control.ruby>end</keyword.control.ruby>
- <keyword.control.ruby>end</keyword.control.ruby>
- <declaration.function.method.without-arguments.ruby> <keyword.control.def.ruby>def</keyword.control.def.ruby> <entity.name.function.ruby>destroy</entity.name.function.ruby></declaration.function.method.without-arguments.ruby>
- <variable.other.constant.ruby>Category</variable.other.constant.ruby>.find(params[<constant.other.symbol.ruby>:id</constant.other.symbol.ruby>]).destroy
- redirect_to <constant.other.symbol.ruby>:action</constant.other.symbol.ruby> => <string.quoted.single.ruby>'list'</string.quoted.single.ruby>
- <keyword.control.ruby>end</keyword.control.ruby>
- <keyword.control.ruby>end</keyword.control.ruby>
- </source.ruby>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement