On Jan 8, 2009, at 12:09 AM, Roy Wright wrote:
> OK, I actually cheat a little in the controller and have the delete
> call the destroy method. I really didn't want the "are you sure"
> prompt, so this seems to work fine from a link_to('delete',
> resource(obj, :delete))
Yeah, this is pretty evil. Not only is it wrong, in the sense that GET
requests aren't supposed to modify anything, it opens you up to some
pretty nasty user experience bugs.
You should listen to Matt. Seriously.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---