Hi,

Can anyone help...  I am trying to understand how 2 different routes
like show and update seem to be the same.  Both are
/questions/:id(.:format).

GET             /questions(.:format)
questions#index
POST           /questions(.:format)
questions#create
GET             /questions/new(.:format)
questions#new
GET            /questions/:id/edit(.:format)
questions#edit
GET            /questions/:id(.:format)
questions#show
PATCH       /questions/:id(.:format)
questions#update
PUT            /questions/:id(.:format)
questions#update
DELETE     /questions/:id(.:format)
questions#destroy

When I try to redirect an action to update, it actually goes to the show
method and I can not figure out how to redirect to the update action.

redirect_to :action => :update, :id => next_question_id  ...instead
redirects to action "show".

Thanks,

Dave

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/6ba9e125d1f19b3bd58a024249c91399%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to