Ruby on Rails Friday, October 26, 2012

when you use link_to or button_to tag, be sure the trigger remote setted to true, like <%=linke_to "Button", contrl_path, remote: true%>.

then you should write a template contrl_action.js.erb in that view folder and name same as the action, that will be your ajax scriptting template for that very acction.

在 2012年10月26日星期五UTC+8下午11时38分20秒,Fahim Patel写道:
Hi all,

   Can any one tell me how to use Ajax with Rails.
    Send me quick start up link and videos.

Thanks 

Regards 
Fahim Babar PAtel 

   


--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/yaNXf7rHmqgJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment