A
A
Alexander Bagirov2015-07-30 17:35:22
css
Alexander Bagirov, 2015-07-30 17:35:22

How to work with css and js in Rails?

Good afternoon.
I'm just starting to learn the framework. Codecademy talks in detail about models and controllers, but the moment of adding css is omitted all the time. Do I understand correctly that I need to add, say, the a.css file to the app/assets folder , and then paste the code below into the desired view?
<%= stylesheet_link_tag 'a' %>
Will Rails actually insert an include for this file after that and, most importantly, find it in the right folder?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
O Di, 2015-07-30
@alexbagirov

rusrails.ru/asset-pipeline

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question