D
D
Dmitry2014-10-24 07:08:26
Ruby on Rails
Dmitry, 2014-10-24 07:08:26

How to separate assets for different controllers?

Hello.
How to split js and css in rails in such a way that when a specific controller is executed, only the js / css part is compiled.
It's embarrassing that there is js and css of the backend in the frontend.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry, 2014-10-24
@warlockit

Everything is in the pipeline documentation
Closed

P
Pavel Bakin, 2014-10-30
@recomp

you can post here :)

<%= javascript_include_tag params[:controller] %> или <%= stylesheet_link_tag params[:controller] %>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question