public
Description: Rails plugin: provides automatic navigation for RESTful architectures, and has simple support for those that aren't.
Homepage: http://rpheath.com/posts/309-rails-plugin-navigation-helper
Clone URL: git://github.com/rpheath/navigation_helper.git
navigation_helper / install.rb
100644 22 lines (15 sloc) 0.746 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
message = <<-MESSAGE
*********************************************************************************
Don't forget to add named routes that match the sections passed into
the navigation helper.
Example:
<%= navigation [:home, :about, :contact_me] -%>
 
# doing the above would require these named routes to exist:
# routes.rb
home_path # map.home '...', :controller => '...', :action => '...'
about_path # map.about '...', :controller => '...', :action => '...'
contact_me_path # map.contact_me '...', :controller => '...', :action => '...'
Enjoy!
*********************************************************************************
MESSAGE
 
puts message