Hello, I’m learning RoR on ruby tut and, on reaching Listing 5.5, I’m throwing an error (all the files are filled in accordingly for the tutorial, the error is thrown when importing the listing 5.5):
NoMethodError in StaticPages#home Showing /home/sych/rails_projects/sample_app/app/views/layouts/application.html.erb where line #5 raised: undefined method `environment' for nil:NilClass (in /home/sych/rails_projects/sample_app/app/assets/stylesheets/custom.css.scss) Tell me, what could be the problem and how to fix it? All files are filled according to the tutorial.