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.
> 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/-/t_GmEPrLUIMJ.
> For more options, visit https://groups.google.com/groups/opt_out.
--
--
Mis mejores deseos,
Best wishes,
Meilleurs vœux,
> 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/-/t_GmEPrLUIMJ.
> For more options, visit https://groups.google.com/groups/opt_out.
Ajax is the default functionality from rail no need of extra packages, ensure following things you have included
1)ensure rails.js in public/javascripts files if, you are using < 3.0. if, you are using >3.0 then auto metically it will includes in application.js(manifest file)
2) use :remote=> true in the link_for or form tags
ex:- <%=link_to 'Remote Link', home_path,:remote=>true%>
> --
> 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.
> For more options, visit https://groups.google.com/groups/opt_out.