Philip Hallstrom wrote in post #979207:
Not sure I understand as what you ask for below isn't an anchor... ??
But maybe what you want is...
link_to_function '', 'add_asset_row()', :class = 'add_child'
Or if you really want a remote link just replace that '#' with '' and it
should give you
Edward Stembler wrote in post #979228:
Now I need to figure out how to get it working with jQuery since I’m not
using Prototype…
Here’s how I got it to work using jQuery:
%=link_to_function '', $('#asset_rows').append('#{escape_javascript
render(:partial = 'partials/asset_row', :locals =
if you name your partial
partials/rows/asset
then you can use
:object = Asset.new
instead of :locals = ...
On Wed, Feb 2, 2011 at 11:22 AM, Edward Stembler li...@ruby-forum.com wrote:
Edward Stembler wrote in post #979228:
Now I need to figure out how to get it working with jQuery since
3 matches
Mail list logo