The url that is generated for an additional controller method is causing
some confusion. I have a site where people can enter their email to get
access for a beta account. This allows me to later grant each person
access manually. To do this I have one additional controller method,
activate, to which is given a method by the following:
map.namespace :site do |site|
site.resources :beta_signups, :member => {:activate => :put}
end
This provides me with a method:
activate_site_beta_signup_url(1)
that generates urls like the following:
http://localhost:3000/site/beta_signups/1/activate
But when I click on the following link I get an error saying that:
Unknown action
No action responded to 1
What am I missing?
Thanks for the help.
--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---