Also, if for whatever reason the request was retryed (by a proxy perhaps) even a single user's actions could result in an unknown final toggle state.
+1 for removal On Feb 16, 2008 1:05 PM, Jarkko Laine <[EMAIL PROTECTED]> wrote: > On 16.2.2008, at 20.43, Tammer Saleh wrote: > > The correct solution is very easy in a restful application, where the > > "publish" link should put params[:record][:published] = true to the > > update action. But even in non-restful applications, having the link > > post to #publish and #unpublish, depending on the state of the record > > when the page is loaded is much more explicit, and less error prone. > > Of course, the correct solution would be not to use a link (or GET) to > do such an action in the first place. Other than, agreed. > > //jarkko > > -- > Jarkko Laine > http://jlaine.net > http://dotherightthing.com > http://www.railsecommerce.com > http://odesign.fi > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" 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-core?hl=en -~----------~----~----~----~------~----~------~--~---
