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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T19:32:28+00:00 2026-06-01T19:32:28+00:00

Not sure if this question belongs on stackoverflow…. I’m trying to follow along with

  • 0

Not sure if this question belongs on stackoverflow….

I’m trying to follow along with Ryan Bates Railscast on Backbone.js. He uses a gem ‘backbone-on-rails’ that generates coffeescript files. Even if I copy the code exactly as he has it, I’m getting all sorts of weird errors (INDENT errors) and the code’s just not working even though, as I said, I’m being very careful about the spaces.

On several occasions, I was able to fix a problem by retyping the code exactly as I had it!

My productivity, already slow, has now ground to a halt using coffeescript, so I’m wondering if there’s another backbone.js gem that doesn’t use coffee script

For example, here’s another error message I’ve got even though there’s no indent and I didn’t copy the code from the internet.

Error: Parse error on line 2: Unexpected 'INDENT'

Another example, the handleError function is supposed to be triggered on an error (and alert message) trying to create an entry. It works on the RailsCast but not in my application.

createEntry: (event) ->
    event.preventDefault()
    attributes = name: $('#new_entry_name').val()
    @collection.create attributes,
      success: -> $('#new_entry')[0].reset()
      error: @handleError

  handleError: (entry, response) ->
    if response.status == 422
      errors = $.parseJSON(response.responseText).errors
      for attribute, messages of errors
        alert "#{attribute} #{message}" for message in messages
  • 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-06-01T19:32:30+00:00Added an answer on June 1, 2026 at 7:32 pm

    The most popular Backbone.js gem for Rails is this: https://github.com/codebrew/backbone-rails. It does not provide functionality for generating Backbone apps in native JavaScript.

    You can use the runner-up gem at https://github.com/meleyal/backbone-on-rails if you’d like to generate a Backbone app in JavaScript. Simply run the following commands:

    • Add gem 'backbone-on-rails' to your Gemfile
    • bundle install
    • rails generate backbone:install -j
    • rails generate backbone:scaffold user -j

    I highly encourage you to learn CoffeeScript, though. Once you nail the syntax down, you’ll be able to develop client-side apps at an increasingly rapid rate.

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

Sidebar

Related Questions

I'm not sure whether this question belongs on StackOverflow or SuperUser, but here goes
I am not sure if this question belongs on StackOverflow but here it is.
Note: I'm not completely sure if this question really belongs to StackOverflow so feel
I'm not entirely sure if this question belongs on stackoverflow or superuser (is there
I am not sure if this question belongs here or superuser (or other). If
Not sure if this question belongs on SO but ... Can I play Desktop
This question could be subjective. I'm not sure if it belongs here or on
( Pre-warning . I'm not quite sure if this question belongs here or not)
I'm not entirely sure if this question belongs here; if not, please let me
Not sure if this belongs here because its not technically a 'programming' question, but

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.