Custom routes issue

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}

This provides me with a method:

that generates urls like the following:

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.

Forget this one.

Maybe it was my lack of coffee, or too much coffee, but I forgot to make
the link_to a put request.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs