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 5837849
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T11:24:18+00:00 2026-05-22T11:24:18+00:00

There are a lot of different ways to use javascript in rails 3.0. I

  • 0

There are a lot of different ways to use javascript in rails 3.0. I was wondering what would be the best approach for a very complex ajax application.

It seems that the more progressive programmers are using coffee script these days, and I don’t mind learning something a little new.

I have already removed prototype and swapped it for jquery-rails.

Still, I’m not sure if this is enough. I reallyed like require-js, because it really helps modularize code and split everything up into different files. But does this work well with rails’ approach?

Also, I may want to use a javascript application framework like backbone. Again, is this overkill or will everything work?

What is the best stack to make very complex ajax applications in rails 3.0.7? What is easiest to develop with and is a nice fit for how rails works?

These decisions are pretty important to make early on, and I don’t want to be re-doing my javascript over and over until I get it right. I’d like to draw on the experience of those who’ve built really complex ajax apps using rails. Thanks!

  • 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-22T11:24:19+00:00Added an answer on May 22, 2026 at 11:24 am

    This depends on how godly you are at not writing organically growing spaghetti code with your jQuery code everywhere.

    An alternative approach is to keep your JavaScript completely separate from your rails.

    You just need one entry point in a view somewhere

    script(type="text/javascript" src="require/require.js" data-main="main.js")

    I personally recommend you treat main.js as a boot-strapper.

    Now you can do all your JavaScript through your main javascript library including loading anything you care about.

    ender, Backbone, underscore, extJS (for the UI), whatever you want.

    This does mean you JavaScript is very separate from your rails server, but that’s ok because you do all your communication over ajax using well defined web APIS.

    If your complex ajax application needs to be real time you might want to look at comet or websockets.

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

Sidebar

Related Questions

There a lot of different ways a Silverlight application can connect back to it’
There are a lot of different classes that can be used in various ways
Problem: There are a lot of different databases, which is populated by many different
There are a lot of exe files in my pen-drive (reside in different directories).
I make lot of dealing with RFID cards. As much as there are different
There are a lot of questions about didRegisterForRemoteNotificationsWithDeviceToken but they all sidestep a very
OK, so I've been toying with different ways of organizing my Rails 3 apps
I know that there are lot's of questons on this, but all seem to
I see there are lot's of examples in Ext JS where instead of actually
I know there a lot of similar questions to this, but I didn't find

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.