Closed robertoplancarte closed 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.
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
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.
~/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