meleyal / backbone-on-rails

A simple gem for using Backbone.js with Rails.
MIT License
805 stars 125 forks source link

activerecord dependency issue #52

Closed brockers closed 10 years ago

brockers commented 11 years ago

I have a couchdb rails application I was working on that specifically needs to disable the active_record dependency to run. Something to this effect:

rails new YourProject --skip-active-record

Tried using backbone-on-rails and for file generation it seemed to work, but as soon as I try to access my default page it crashes due to activerecord trying to access the config/database.yml file (which doesn't exist on non-active_record project.) This only happens when using backbone-on-rails.

Does backbone-on-rails have some kind of active_record dependency that causes it to load?

meleyal commented 11 years ago

It depends on rails in the gemspec, maybe this is the issue?

It looks like e.g. jquery-rails just depends on railties, so that could be the way to go. Could you try this out with a local version of backbone-on-rails?

brockers commented 11 years ago

I will take a look tonight. Thanks for getting back to me.