[Rails] Simple routing problem
I've got the following in config\routes.rb:
map.resources :users
In app\views\shared\_menu.erb, I've got:
Please sign in <%= link_to
"here", :controller=>"user", :action=>"sign_in" -%>
In app\controllers\users_controller.rb
def sign_in
end
When I run the application, I crash with:
Routing Error
No route matches "/user/sign_in" with {:method=>:get}
I presume I should add "def sign_in; [snip]; end" somewhere in:
app\views\users
But where, so as to satisfy the Rails routing scheme?
Is sufficient information provided above to answer this question?
I'm running Rails 2.3.5
Thanks in Advance,
Richard
--
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