Links
Acts as menu role
Categories
Acts as menu role
The syntax for add menu is very simple:
Actions for a controller:
menu_role :role, {:action1 => "Screen Name1", :action2 => "Screen Name2"}
menu_role :other_role, {:action3 => "Screen Name3", :action4 => "Screen Name4"}
Actions with reference a controller:
menu_role :role, {"/controller2/action1" => "Screen Name1", "/controller1/action2" => "Screen Name2"}
And for a commons actions (all roles will can view)
menu_role :all, {:action5 => "Screen Name5"}
Vitals
| Home | http://code.google.com/p/actsasmenurole/ |
|---|---|
| Repository | http://actsasmenurole.googlecode.com/svn/tags/acts_as_menu_role |
| License | GPL |
| Tags |
|
| Rating | (4 votes) |
| Owner | Gastón Ramos |
| Created | 2 January 2008 |

