How to use Ajax with rails?

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

Try Google. :slight_smile:

https://www.google.com/search?q=ajax+with+rails&oq=ajax+with+rails&sugexp=chrome,mod=0&sourceid=chrome&ie=UTF-8

On Fri 26 Oct 2012 12:38:20 PM ART, Fahim P. wrote:

For more options, visit https://groups.google.com/groups/opt_out.

Mis mejores deseos,
Best wishes,
Meilleurs vux,

Juan P.

On Fri, Oct 26, 2012 at 10:38 AM, Fahim P. [email protected] wrote:

Hi all,

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

Include jquery-rails and do it like you normally would.

On Friday 26 October 2012 09:08 PM, Fahim P. wrote:

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:[email protected]
http://railsdocuments.blogspot.com
https://twitter.com/g_subbarao

On Friday, October 26, 2012 5:38:20 PM UTC+2, Fahim P. wrote:

it’s still in edgeguides but it’s a nice intro written by @steveklabnik
(if
i’m not mistaken)
http://edgeguides.rubyonrails.org/working_with_javascript_in_rails.html

cheers

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 P.写道:

http://railscasts.com/episodes?utf8=✓&search=ajax
*

Luis Va**sconcellos | *Web D. at DTM

wblog: luisvasconcellos.com
twitter: @vasconcelloslf http://www.twitter.com/vasconcelloslf
mobile: 55 21 95100576

http://dtmtec.com.br http://www.dtmtec.com.br
@dtmtec http://www.twitter.com/dtmtec

2012/10/30 tonypm [email protected]

I have just been reading this and finding it helpful background with
some nice examples:

http://madebydna.com/all/code/2011/12/05/ajax-in-rails-3.html

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs