[Rails] Re: link_to help in Rails 3.0.3

2011-02-02 Thread Edward Stembler
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

[Rails] Re: link_to help in Rails 3.0.3

2011-02-02 Thread Edward Stembler
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 =

Re: [Rails] Re: link_to help in Rails 3.0.3

2011-02-02 Thread Curtis j Schofield
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