sprockets - Rails assets rendering 404 out of the box -


i've started new rails (4.2.2) app, basic functionality. javascript , css files aren't rendered:

chrome displaying 404

i have installed sprockets gem , i've tried explicitly adding 'sprockets' gem gemfile (and running bundle install), didn't help.

here application.js:

//= require jquery //= require jquery_ujs //= require turbolinks //= require_tree . 

and these 2 lines in application.html.erb

<%= stylesheet_link_tag    'default', media: 'all', 'data-turbolinks-track' => true %> <%= javascript_include_tag 'default', 'data-turbolinks-track' => true %> 

and render follows: enter image description here

i have ruby 2.1.6p336 installed on windows 8.1 know answers or know going wrong? i'm pretty new rails.

i think need change javascript , stylesheet tag this. fetches details application.js , application.css not default ones

<%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %> <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> 

Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -