# CSS assistance with Ruby

**URL:** <https://www.ruby-forum.com/t/css-assistance-with-ruby/262854>\
**Category:** Rails\
**Tags:** about\
**Created:** [May 4, 2022, 10:59pm UTC](https://www.ruby-forum.com/t/css-assistance-with-ruby/262854 "2022-05-04T22:59:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![shansiddiqui94](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b77776/32.png) [@shansiddiqui94](https://www.ruby-forum.com/u/shansiddiqui94)\
**Post date:** [May 4, 2022, 10:59pm UTC](https://www.ruby-forum.com/t/css-assistance-with-ruby/262854/1 "2022-05-04T22:59:40Z")

</div>

Hey there,

New Ruby dev is in need of assistance.

Does anyone know how to set up Materialize CSS with Ruby I am following a tutorial, and the steps for adding the materialize CSS library into Ruby didn’t work for me, I get hit with this error

```auto
/Users/DanielSkies/.rvm/gems/ruby-3.0.0/gems/sass_rails_patch-0.0.2/lib/sass_rails_patch.rb:3:in `<main>': uninitialized constant Sass (NameError)
Did you mean? SassC

```

The Ruby app automatically came with application.css in the assests/stylesheet/application.css like this. However when I change the extension to what the error is asking for I get hit with an error.

in the application.css I did add this `@import "materialize"`

and of course, I did bundle install and also gem individual install.

Anyone know how to do this really lost.

Thank you

---

<div class="post-metadata">

**Author:** ![infinity\_universe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/82dd89/32.png) [@infinity\_universe](https://www.ruby-forum.com/u/infinity_universe)\
**Post date:** [May 24, 2022, 12:46am UTC](https://www.ruby-forum.com/t/css-assistance-with-ruby/262854/2 "2022-05-24T00:46:27Z")

</div>

Are you adding `sass` and `sass-rails` gems? Try adding them and run `bundle install` again.

```auto
gem 'sass'
gem 'sass-rails'

```

---

<div class="post-metadata">

**Author:** ![shansiddiqui94](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b77776/32.png) [@shansiddiqui94](https://www.ruby-forum.com/u/shansiddiqui94)\
**Post date:** [May 24, 2022, 2:43pm UTC](https://www.ruby-forum.com/t/css-assistance-with-ruby/262854/3 "2022-05-24T14:43:32Z")

</div>

Hey,

Thank you for replying I found the solution to my problem with trial and error. Sometimes you have to take a step back for things to work.

It turns out the wrong version of MaterializedCSS with installed. I updated it to the current and imported the correct gems.

---

<div class="post-metadata">

**Author:** ![Sterling1](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ea666f/32.png) [@Sterling1](https://www.ruby-forum.com/u/Sterling1)\
**Post date:** [October 27, 2022, 2:22pm UTC](https://www.ruby-forum.com/t/css-assistance-with-ruby/262854/4 "2022-10-27T14:22:07Z")

</div>

Exactly, One back steps make multiple changes in your work. I also get this in my life and solve multiple queries to making mind set with this.  
[![AM APk for ios 2022](https://www.ruby-forum.com/uploads/default/original/2X/3/3af658da560dd35c594479e114c5245559960310.png)](https://editorsmodapk.com/alight-motion-mod-apk-for-ios/)
