Reputation: 203
I just merged the redesign branch in our rails app, and now we use slim. Everyone seems to have it working fine, but if I try browsing the new website (without any code modification), I get syntax errors like:
unexpected ':', expecting keyword_end
Here is a snippet of the slim file, above error is on the last line, but I'm pretty sure this has nothing to do with the file as others devs don't have the problem, neither does the production site.
#featured-destinations-carousel.carousel.slide data-ride="carousel" data-interval="15000"
.pagination.hidden-sm.hidden-xs
= link_to "#featured-destinations-carousel", 'data-slide': 'prev' do
I was told to upgrade to Ruby 2.2+, I did (with rbenv), but that didn't fix it. Ideas?
Upvotes: 1
Views: 123
Reputation: 4114
You're super close. Just need to change it to
= link_to "#featured-destinations-carousel", 'data-slide' => 'prev' do
instead.
Upvotes: 0
Reputation: 2090
Your upgrade hasn't worked properly, the Rails app is still using and older version of Ruby. Make sure your rbenv is set up properly (do ruby -v
and which ruby
to help debug before running rails s
) and that your .ruby-version
file has the correct version in it.
Upvotes: 1