So, I know there are multiple questions and solutions on StackOverflow about Haml not working on Rails, but those haven't helped me, that's why I try again (and try to document as precise as I can).
Today, I install Haml by doing gem install haml
. This installed Haml, and I tried changing my index.html.erb
to index.html.haml
. I got the following error:
I googled and found some solutions on StackOverflow, mentioning I should restart my server (tried it, didn't solve it) and the second solution was: install haml-rails
instead of just haml
and then restart my server. That didn't work, so I uninstalled haml
and haml-rails
, after which I installed haml-rails
again (I thought the might've been bugging eachother), but to no avail.
I then read somewhere that people didn't even have Haml in their gems-list when executing bundle show
(yes, I also put the gem in my bundle list). So I tried that, and indeed, Haml doesn't show up in my list of installed gems.
So, I'm hoping someone can help me out, because I'm at a loss here. If you have any questions of if I should clarify something in more detail, please ask!