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 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to