meleyal / backbone-on-rails

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

rails g backbone:install did not create backbone.js or underscore.js #23

Closed robertoplancarte closed 12 years ago

robertoplancarte commented 12 years ago

~/railsapps/bkbone$ rails g backbone:install append app/assets/javascripts/application.js create app/assets/javascripts/collections create app/assets/javascripts/models create app/assets/javascripts/routers create app/assets/javascripts/views create app/assets/templates create app/assets/javascripts/bkbone.js.coffee

benatkin commented 12 years ago

I think that's because it's using sprockets (from the asset pipeline to load them) from the gem. If you do //= require 'backbone' it looks in the search path which includes gems.

robertoplancarte commented 12 years ago

I'll try that later today, what i did was just copy the backbone.js and underscore.js files mualy. Thanks for the reply :D

On Fri, Apr 13, 2012 at 2:40 PM, Benjamin Atkin < reply@reply.github.com

wrote:

I think that's because it's using sprockets (from the asset pipeline to load them) from the gem. If you do //= require 'backbone' it looks in the search path which includes gems.


Reply to this email directly or view it on GitHub: https://github.com/meleyal/backbone-on-rails/issues/23#issuecomment-5125490

Roberto Plancarte González Mail: robertoplancarte@gmail.com Teléfono: 83033846 Celular: 8110442292

meleyal commented 12 years ago

Yes, underscore and backbone are provided by the gem. Note that you need to restart the server after installing so the asset pipeline picks them up.