JohnDel
JohnDel

Reputation: 2102

Rails - Link_to_remote a big name

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?

Upvotes: 0

Views: 89

Answers (1)

Shadwell
Shadwell

Reputation: 34774

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')

Upvotes: 1

Related Questions