ruby - How to setup javascript files as :defaults in rails 4? -


my current ror application using rails 3.2.10 , want upgrade on rails 4.0.0.

i solve gem dependence when run rails server give error :-

undefined method `[]=' nil:nilclass config/application.rb:39:in `<class:application>' 

my config/application.rb file has code @ line 39.

#javascript files want :defaults (application.js included). config.action_view.javascript_expansions[:defaults] = %w(jquery rails) 

for should do- change code or remove, dependence or other option.

rails 4 support assets precompile comment line:-

#config.assets.enabled = true   in rails 4 assets pipline enable default 

if switch on using asset pipeline should not use javascript_include_tag :defaults more in templates, , don't have set configuration option more.

see javascript_include_tag on apidoc: ""


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -