please have a look at the following link.. you will get a clear idea
on routing.

http://guides.rubyonrails.org/routing.html

On Nov 13, 11:30 pm, explainer <keburg...@gmail.com> wrote:
> I used the scaffold option to generate a RESTful set of routes to a
> Document model.  All works as described.  Now, I wish to extend the
> controller to add a 'publish' action on DocumentController and add a
> 'publish' route to mimic what the generated 'create' action does.  How
> do I specify this in the routes.rb file?  BTW, I need to keep the
> create action as generated.


Syed Samiuzzaman
software Engineer
Code71 Inc (www.code71.com)
product: www.scrumpad.com
blog: samiuzzaman.blogspot.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@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to