D
D
Dmitry2016-03-04 09:42:07
Ruby on Rails
Dmitry, 2016-03-04 09:42:07

Doesn't want to work Slim in Rails. How to fix?

I want to try Slim with RoR. I wrote
gem 'slim', '~> 3.0', '>= 3.0.6'
in the gemfile and then ran
gem install slim
in the terminal as recommended here
1a863-clip-145kb.jpg
, I inserted the demo code from the slim site into the view,
c58ae-clip-91kb.jpg
but in the browser porridge ....
2fccf-clip-118kb.jpg
The server restarted , bundle install did.
How to fix?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexey P, 2016-03-04
@ruddy22

Take advice. Use haml. Slim periodically generates invalid html markup.

D
Dmitry, 2016-03-04
@r_o_r

Everything was solved simply -
Everything works. Topic closed.

C
CapeRatel, 2016-03-04
@CapeRatel

The problem with body padding.
Slim-rails works great.
And remove the html on the second line.
And adjust the padding in the sublime.
Don't use a specific version, slim stable works well.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question