is not commented out and lib/jquery-rails.rb cannot override
config.action_view.javascript_expansions[:defaults]
to include the jquery files and you'll get an error "No expansion found for :defaults" when you run your app.
The README should say not to use the -J flag (since some people assume it is necessary when switching from Prototype to jQuery). Or the jquery-rails generator should modify the config/application.rb file to make sure the config.action_view.javascript_expansions[:defaults] setting is commented out.
If an app is created with
rails new testapp -J
(using the "-J" flag to eliminate the Prototype files)
then in the config/application.rb file
config.action_view.javascript_expansions[:defaults] = %w()
is not commented out and lib/jquery-rails.rb cannot override
config.action_view.javascript_expansions[:defaults]
to include the jquery files and you'll get an error "No expansion found for :defaults" when you run your app.
The README should say not to use the
-J
flag (since some people assume it is necessary when switching from Prototype to jQuery). Or the jquery-rails generator should modify the config/application.rb file to make sure theconfig.action_view.javascript_expansions[:defaults]
setting is commented out.