[Rails] Newbie route issue
I am writing my first RoR app.
I have used the following command to create several pages:
$ rails generate controller home index (I created home, news, gallery,
contact,...)
I created the menus in app/views/layouts/application.html.erb :
<div id="menu">
<ul>
<li><a href="/">Home</a></li>
<li><a href="/news">News</a></li>
<li><a href="/gallery">Gallery</a></li>
<li><a href="/membership">Membership</a></li>
<li><a href="/sponsors">Sponsors</a></li>
<li><a href="/faq">FAQ's</a></li>
<li><a href="/shoot">Shoot Info</a></li>
<li><a href="/contact">Contact</a></li>
</ul>
If I click on one of the menu button "Gallery", I get:
Routing Error
No route matches [GET] "/gallery"
The config/routes.rb has:
get "gallery/index"
What am I missing?
Thanks
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home