Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6586673
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T16:49:17+00:00 2026-05-25T16:49:17+00:00

I have a question regarding basic usage of Ajax/jQuery in Ruby On Rails 3.

  • 0

I have a question regarding basic usage of Ajax/jQuery in Ruby On Rails 3.

I have read many Tutorials, but this Ajax thing is really complicated for me. jQuery isnt used any more and in newer papers were referred to “prototype”. And in some other papers you were referred to “Unobtrusive Javascript”… This all is really confusing for me. I didnt find any up-to-date “Ajax Beginner Howto for Ruby on Rails” – so maybe someone could help me here.

What i want to do, for example, is to create a Box with a static HTML Content in (it should display Contact- & Licence Information). I found this Question Ajax pop up box using Ruby on Rails which is exactly what i search (facebox seems to be perfect), but if i try to do it like:

<a href="remote.html" rel="facebox">text</a> (in my index.html.erb view)

(see http://defunkt.io/facebox/) and load the dependencies:

<link href="/facebox/facebox.css" media="screen" rel="stylesheet" type="text/css"/>

<script src="/facebox/facebox.js" type="text/javascript"></script> (in my application.html.erb view)

without loading jquery and with jquery from google. Default RubyOnRails Javascript is loaded additionally.

… it doesnt work. Sadly.

I there someone how could bring light into the Ajax Rails thing for me? Maybe white some little examples?

Thanks a lot!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T16:49:17+00:00Added an answer on May 25, 2026 at 4:49 pm

    To get you started, I suggest you to look into the following resources:

    • railscasts.com/episodes/205-unobtrusive-javascript
    • http://net.tutsplus.com/tutorials/javascript-ajax/using-unobtrusive-javascript-and-ajax-with-rails-3/

    The first one is a railscasts-episode by Ryan Bates, which is a really great start.
    The second one is an absolute beginners tutorial, which is admittedly not comletely flawless, but it should give you a headstart into the right direction.

    To get a deeper insight you should check the following articles:

    • http://www.simonecarletti.com/blog/2010/06/unobtrusive-javascript-in-rails-3/
    • http://www.alfajango.com/blog/rails-3-remote-links-and-forms/
    • http://www.alfajango.com/blog/rails-3-remote-links-and-forms-data-type-with-jquery/

    All those resources are available on the web for free. One last (very highly) recommendation though is the updated book “Agile Web Development with Rails” (partly) written by David Heinemeier Hansson himself.

    It shows you how to use Ajax with jQuery within a working (little bit bigger) rails-application in a very straightforward and easy-to-follow manner.

    Hope this helps
    cheers

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Sorry for such a basic question regarding lists, but do we have this feature
There are many articles in this site regarding my question. I have a matrix
I have a basic question regarding jQuery. I have a static time-selection box IE:
I have a few basic questions regarding the syntax and usage of properties in
I have a basic question regarding timers. My timer is acting very strange. I
I have a question regarding the Phonegap basic architecture design: 1.The phonegap project contains
I know a lot of question regarding VB6 migration have been asked, but I
I have a basic question regarding the const pointers. I am not allowed to
I have a basic question regarding assignment of a list of subclass to a
I have very basic question regarding return value of a function, and checking the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.