Answer the question
In order to leave comments, you need to log in
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
For example, like this:
<%= stylesheet_link_tag 'application', media: 'all' %>
<%= javascript_include_tag 'application' %>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question