Use custom css (rails and windows)

1

Good afternoon,

I'm new to rails and I'm trying to put the frontend I have here from another site into the project. HTML, css and javascript are all ready. So I managed a controller named Public with all the views (frontend, home, contact, etc). I then took the css and put it inside assets / stylesheets. Then I took the js files and put them in the assets / javascripts folder. I then made a new layout, public.html.erb. In it, I try to call the custom css and I can not. I have already tried editing the manifesto by putting your name and nothing has changed. When I call there in the view using:

<%= stylesheet_link_tag  'app', media: 'all' %>

or

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

I always get the message: ExecJS :: ProgramError in Public # nomedaminhaview

app.css is the name of my css. How do I use a css itself in a rails application on windows?

    
asked by anonymous 10.02.2017 / 19:04

1 answer

0

In your 'assets / stylesheets / application.css' you should have

 *= require_tree .
 *= require_self

And in your 'views / layout / application.html.erb'

<%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>

This already imports all 'css' files in the 'stylesheets' folder

    
06.03.2017 / 16:18