Note that there are some explanatory texts on larger screens.

plurals
  1. POBootstrap Integration gem with Rails 4
    primarykey
    data
    text
    <p>I recently attended a hackathon, and we a made a web application in rails. We were all new to rails and were not aware of the bootstrap gem, and thus we hard coded the bootstrap style sheet in the assets folder. </p> <p>In an effort to learn Rails, further, I'm continuing with the app. I have deleted the .css file, and added the gem to my Gemfile. I've ran bundle install and imported the files using the '@import' command in another CSS file.</p> <p>When I run the rails server and navigate to my homepage, I get an error:</p> <pre><code> Sass::SyntaxError in Pages#rootpage Showing C:/Users/User/Documents/SoapBox/app/views/layouts/application.html.erb where line #6 raised: File to import not found or unreadable: bootstrap. Load paths: C:/Users/Soham/Documents/SoapBox/app/assets/images C:/Users/Soham/Documents/SoapBox/app/assets/javascripts C:/Users/Soham/Documents/SoapBox/app/assets/stylesheets C:/Users/Soham/Documents/SoapBox/vendor/assets/javascripts C:/Users/Soham/Documents/SoapBox/vendor/assets/stylesheets C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/turbolinks-1.3.0/lib/assets/javascripts C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/jquery-rails-3.0.4/vendor/assets/javascripts (in C:/Users/Soham/Documents/SoapBox/app/assets/stylesheets/styles.css.scss:2) `File to import not found or unreadable: bootstrap`. &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt; &lt;link href='http://fonts.googleapis.com/css?family=Oswald:700,300' rel='stylesheet' type='text/css'&gt; &lt;%= favicon_link_tag "favicon.png", :type =&gt; "image/png", :rel =&gt; "icon" %&gt; &lt;%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" =&gt; true %&gt; &lt;%= javascript_include_tag "application", "data-turbolinks-track" =&gt; true %&gt; &lt;%= csrf_meta_tags %&gt; </code></pre> <p> I don't understand why the error is occurring.</p> <p>Any help would be much appreciated!</p> <p>Thanks!</p> <p>SohamK</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload