On Tue, Oct 20, 2009 at 6:05 PM, Ale Ds
[email protected] wrote:
I start to use JQuery with Rails:
I should make a simple text link to call in Ajax (by GET) an action in
for Rails, but link_to_remote is a Rails method.
If you’re gonna use jQuery on your Rails application, you better
install the jrails plugin which will give you the proper
replacements for those helper methods.
Is it possible to use “link_to” to make ajax call ?
Yes, it is.
(I didn’t have succeed )
What I should use instead of link_to_remote ?
You could use any click handler function and perform an $.ajax or
$.get or $.post call in that handler, jQuery docs has the right
information for you.
There’s no place like ~