- Steve
Since you want one version to update a row in a list while you want to
refresh the whole page in the other case, it seems that you want to
return RJS in the former and HTML in the latter.
You are performing an edit action in both cases. In the first case you
can detect an XMLHttpRequest and respond with RJS. In the second you can
re-direct to the show detail action for the object.
In Rails use remote_form_for and remote_form. Implment the DIV in a
partial and chose the method depending upon a parameter passed to the
partial.
/Neil
matthe...@gmail.com
mobile 617 852 5130