resource(@nameoftheresource, :delete) produces a URL like this:
/controller/id/delete
but the delete method is not present in the controller, while the
destroy method is, and it seems to me that this makes the above
resource function a little bit useless. So, if I wanted to use that
function, would I be forced to do things like this:
def delete(id)
redirect url(@nameoftheresource, :action => 'destroy', :id => id)
end
or there's some other way to quickly display the delete link to erase
stuff from the DB via a GET request?
Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"merb" 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/merb?hl=en
-~----------~----~----~----~------~----~------~--~---