> Obviously
>>> map.resources :sessions, :member => {:validate => :get}, :new => {:start =>
> :get}, :only => %w(create new)
> creates new route for you like the one you have in new method
>>> redirect_to start_new_session_path and return if current_user


Thanks for response. I do notice this:

form_tag sessions_path

creates sessions/create

and so when the form is posted, create method of sessions controller is 
executed.


One thing though. How does it know to post to create if it just says 
sessions_path and not create_sessions_path? Since there is only a new 
and create action, it just assumes that since a form is being posted, 
you must want it to go to create?

Thanks for response.

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to