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
smime.p7s
Description: S/MIME cryptographic signature
