README.rdoc in menu_builder-0.3.2 vs README.rdoc in menu_builder-0.3.3
- old
+ new
@@ -24,9 +24,20 @@
class DashboardController < ApplicationController
menu_item :mydashboard
...
end
+You can also change to menu item in action level instead of class level:
+
+ class DashboardController < ApplicationController
+ menu_item :mydashboard
+
+ def prices
+ menu_item :prices
+ ...
+ end
+ end
+
=== View
==== ERB code
<%= menu(:id=>"mainMenu", :class=>"menu") do |m| %>
\ No newline at end of file