tothemario wrote in post #1021529:
> # Auto-require default libraries and those for the current Rails
> environment.
> Bundler.require :default, Rails.env
>
> require "coffee"
> require "jquery-rails" # this should be auto-included with the
> Bundler.require :default, Rails.env, but it's not happening
>
> module Dummy
> class Application < Rails::Application
> # ...
> end
> end
>
>
> Same with other gems that have assets that should be auto-loaded by
> Sprockets.
> Hope this helps.
>
> - Mario Izquierdo
This solved my problem, I gotta login to thank you!
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/25b4c858caa62f061d4d3c5133b89b01%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment