How to use Ajax with rails ?

121 views
Skip to first unread message

Fahim Patel

unread,
Oct 26, 2012, 11:38:20 AM10/26/12
to rubyonra...@googlegroups.com
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 

   


Juan Pablo

unread,
Oct 26, 2012, 3:31:12 PM10/26/12
to rubyonra...@googlegroups.com
Try Google. :)

https://www.google.com/search?q=ajax+with+rails&oq=ajax+with+rails&sugexp=chrome,mod=0&sourceid=chrome&ie=UTF-8
> --
> 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 rubyonra...@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-ta...@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,

Juan Pablo
------------------------------------------------------
http://www.jpgenovese.com

Jordon Bedwell

unread,
Oct 26, 2012, 5:53:25 PM10/26/12
to rubyonra...@googlegroups.com
On Fri, Oct 26, 2012 at 10:38 AM, Fahim Patel <paf...@gmail.com> 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.

subbarao

unread,
Oct 29, 2012, 1:05:26 AM10/29/12
to rubyonra...@googlegroups.com
> --
> 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 rubyonra...@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-ta...@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:subbar...@gmail.com
http://railsdocuments.blogspot.com
https://twitter.com/g_subbarao

1334

unread,
Oct 29, 2012, 5:41:58 AM10/29/12
to rubyonra...@googlegroups.com
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

tonypm

unread,
Oct 30, 2012, 2:34:29 AM10/30/12
to Ruby on Rails: Talk
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

Luis Vasconcellos

unread,
Oct 30, 2012, 3:39:12 AM10/30/12
to rubyonra...@googlegroups.com
http://railscasts.com/episodes?utf8=%E2%9C%93&search=ajax


Luis Va
sconcellos | Web Developer at DTM

wblog:  luisvasconcellos.com
twitter: @vasconcelloslf

mobile: 55 21 95100576

http://dtmtec.com.br


2012/10/30 tonypm <tonyp...@hotmail.com>
--
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 rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages