Ruby on Rails Sunday, October 28, 2012

On Friday 26 October 2012 09:08 PM, Fahim Patel wrote:
> 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/-/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%>

--
-------------Regards---------------
G SubbaRao ( Ruby Developer )
E-Mail:subbarao.kly@gmail.com
http://railsdocuments.blogspot.com
https://twitter.com/g_subbarao

--
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.

No comments:

Post a Comment