routes.rb
-----------------------
resources :users do
  member do
    get :invitation
    post :activate
  end
end
------------------------

1) I go to users/78/invitation (where the form is)
2) I submit the form and goes to this url users/78/activate
3) but gives me this error "No route matches "/users/78/activate"

Whyyyyyy?

rake routes
---------------------------
 invitation_user GET    /users/:id/invitation(.:format) 
{:action=>"invitation", :controller=>"users"}

    activate_user POST   /users/:id/activate(.:format) 
{:action=>"activate", :controller=>"users"}
--------------------------------------------------

-- 
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