meleyal / backbone-on-rails

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

generators for engines #24

Closed fluxsaas closed 12 years ago

fluxsaas commented 12 years ago

Hey, just noticed that it would be nice if the generators pickup the engine env. currently i get a:

No such file or directory - /rails_app/vendor/engines/engine_name/app/assets/javascripts/application.js (Errno::ENOENT)

error, if i run the generators inside an engine.

above should be detect the engine namespace:

/.../rails_abb/vendor/engines/engine_name/app/assets/javascripts/engine_name/application.js

meleyal commented 12 years ago

What's the benefit of this? Can you provide a link to any docs?

Thanks.

meleyal commented 12 years ago

Closing this for now. Happy to reopen if you can provide some docs on how it works.

clekstro commented 11 years ago

I think the option that @fluxsaas was referring to had to do with the --namespace option being used automatically if one is using the gem from within an engine. I will open another issue similar to this but with more detail.