I believe you only have two restful routes (create and new) because of the line:
:only => %w(create new) And the start action is defined as an alternative new action here, probably because the original author wanted a GET instead of POST (/ sessions/start): :new => {:start => :get} Based on the SessionController it looks like you may have more routes then you are actually using. On Apr 26, 4:57 pm, John Merlino <li...@ruby-forum.com> wrote: > Hey all, > > I'm looking at this route below: > > map.resources :sessions, :member => {:validate => :get}, :new => {:start > => :get}, :only => %w(create new) > > It's clear the sessions has the 7 restful routes but each member of a > collection of records can also be influenced by the validate method. > Then I come across this line: > > :new => {:start => :get}, :only => %w(create new) > > and I'm not sure what this is doing. > > The sessions controller has these two methods: > > def new > redirect_to start_new_session_path and return if current_user > flash.now[:alert] = params[:error] if params[:error] > flash.now[:notice] = params[:notice] if params[:notice] > end > > def start > end > > Thanks for response. > > -- > Posted viahttp://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.