How do i create multiple URLs with /controller/action/ format?

Posted by Angela on Stack Overflow See other posts from Stack Overflow or by Angela
Published on 2010-06-15T03:24:10Z Indexed on 2010/06/15 3:32 UTC
Read the original article Hit count: 132

Filed under:
|

I have several controller/actions where no :id needs to be passed.

what I did with the first two was make a custom route defining the controller and action.

I thought that the default would allow me to create controller/action.xml by using respond_to in the controller, but that doesn't appear to be the right way.

How can I create controller/action URL's (some are .xml) without creating a special route with map.connect?

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about routes