ruby on rails - Error after adding @import "bootstrap"; ArgumentError in Static_pages#home -
i'm @ 5.1.2 of railstutorial, have installed bootstrap-sass (i've double checked, gem there). http://ruby.railstutorial.org/chapters/filling-in-the-layout#top
i added file: app/assets/stylesheets/custom.css.scss
and when give content:
@import "bootstrap";
my http://localhost:3000/static_pages/home not work anymore. gives following error:
argumenterror in static_pages#home showing c:/sites/rails_projects/sample_app/app/views/layouts/application.html.erb line #5 raised: different prefix: "e:/" , "c:/sites/rails_projects/sample_app/app/assets/stylesheets" (in c:/sites/rails_projects/sample_app/app/assets/stylesheets/custom.css.scss) extracted source (around line #5): 2: <html> 3: <head> 4: <title><%= full_title(yield(:title)) %></title> 5: <%= stylesheet_link_tag "application", :media => "all" %> 6: <%= javascript_include_tag "application" %> 7: <%= csrf_meta_tags %> 8: <!--[if lt ie 9]> rails.root: c:/sites/rails_projects/sample_app application trace | framework trace | full trace app/views/layouts/application.html.erb:5:in `_app_views_layouts_application_html_erb___557356520_29974776'
any appreciated, thanks!
your gems in e:
while app in c:\
when trying @import, assets module search several places including gem path. can't recognize disk within path. that's why @import fails.
suggestion: put app , gems in same disk.
side note: don't use windows rails development @ all.
Comments
Post a Comment