M
M
Max2015-12-08 19:33:37
Ruby on Rails
Max, 2015-12-08 19:33:37

How to include styles and scripts in rails?

Hello, I deleted turbolinks, now I'm trying to connect scripts or styles manually, but the site does not see them. I connect like this:

<link rel="stylesheet" href="../assets/stylesheets/application.css">

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Kozhin, 2015-12-08
@kkzhn

For example, like this:

<%= stylesheet_link_tag 'application', media: 'all' %>
<%= javascript_include_tag 'application' %>

Those. you just need to remove directives of the form
In general, everything depends on how you decide to organize work with the assets pipeline .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question