views:

28

answers:

1

I need to use link_to_remote, but instead of using something like link_to_remote "a small name" I need to set a partial as a name. How can I do that?

+1  A: 

You can simply set the rendering of your partial as the 'name' for the link_to_remote:

link_to_remote(render(:partial => 'my_partial'), 
               :url => some_url, 
               :update => 'some_id')
Shadwell