M
M
Mr Freeman2015-06-03 08:51:27
Ruby on Rails
Mr Freeman, 2015-06-03 08:51:27

How to integrate theme from wrapbootstrap into rails?

Hi all. I can't figure out how to integrate the theme into rails.
Of all the tips and instructions I read, I found that you just need to add styles / js / pictures to / vendors / assets /, respectively, add the missing folders to config.assets.paths and add files to application.css
Separately, the bootstrap is connected like this, without problems.. but..
.. there are a lot of them, all sorts of these files.. that is, plugins and so on. I will not engage in "separatism" for a week. Especially there with ways then there will be a problem. I think there are some better solutions.
At the input (in the resulting wrapbootstrap theme) we have icons, vendors, styles, scripts, etc.. folders, and at the output there is a bare rails app. Please tell me how you can integrate the theme from wrapbootstrap through the asset pipeline into the RoR application. Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Kononenko, 2015-06-03
@vladamir

We used to use Smart Admin for admins. I pull it like this:
In application/_layout.html.slim I put the layout of the template
In vendor/assets/javascript I create 2 directories:
- plugins (only the necessary plugins will be dragged from this folder to smart_admin)
- smart_admin
Next, write in application.js
With stylesheets do the same. And do not forget to turn off the turbos (well, or use them smartly).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question