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:
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 %>
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
Post a Comment