# Custom routes issue

**URL:** <https://www.ruby-forum.com/t/custom-routes-issue/133929>\
**Category:** Rails\
**Created:** [April 5, 2008, 3:18am UTC](https://www.ruby-forum.com/t/custom-routes-issue/133929 "2008-04-05T03:18:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sumwutdum](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b77776/32.png) [@sumwutdum](https://www.ruby-forum.com/u/sumwutdum)\
**Post date:** [April 5, 2008, 3:18am UTC](https://www.ruby-forum.com/t/custom-routes-issue/133929/1 "2008-04-05T03:18:22Z")

</div>

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](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.

---

<div class="post-metadata">

**Author:** ![sumwutdum](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b77776/32.png) [@sumwutdum](https://www.ruby-forum.com/u/sumwutdum)\
**Post date:** [April 5, 2008, 3:24am UTC](https://www.ruby-forum.com/t/custom-routes-issue/133929/2 "2008-04-05T03:24:21Z")

</div>

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.
