0

I followed the super simple direction on how to install the normalize-rails css reset gem outlined here https://github.com/markmcconachie/normalize-rails

but I keep getting error stating that

"couldn't find file 'normalize-rails'"

when I included

*= require normalize-rails in my application.css file. I ran bundle, bundle update etc, still no dice. Am I installing this incorrectly? What I'm doing wrong?

Gagan Gami
  • 10,121
  • 1
  • 29
  • 55
jobes
  • 3
  • 1
  • 2
  • just saying, you could download the normalize.css file and put it in vendor/assets/stylesheets – Raj Sep 05 '14 at 05:18
  • 1
    Did you add `*=require normalize-rails` before `*= require_tree .`? And what version of rails are you using? – Vucko Sep 05 '14 at 05:46

2 Answers2

4

Check this Steps:

  1. Add gem 'normalize-rails' in your Gemfile
  2. Run bundle install command in your terminal
  3. Check gem is installed or not by running bundle show normalize-rails in your terminal
  4. restart your rails server
  5. Add *= require normalize-rails in your application.css file before *= require_tree .

If you missed any steps then check it...

NOTE: You must using Rails 3.1+

Gagan Gami
  • 10,121
  • 1
  • 29
  • 55
1

First, run the following command to see if the gem has been installed

bundle show normalize-rails

And remember to restart your server after installing new gem :)

The Lazy Log
  • 3,564
  • 2
  • 20
  • 27