On Fri, Nov 13, 2009 at 09:30:05AM -0800, explainer 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

You might need to tweak this, but I think what you need is:

    map.login 'publish', :controller => 'documents', :action => 'publish'

Other than creating publish() in your documents_controller.rb, you
shouldn't have to change anything else since you're just adding a
mapping for a new method.

-- 
"Oh, look: rocks!"
        -- Doctor Who, "Destiny of the Daleks"


--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to