DEV Community

Integrate AndminLTE with Ruby On Rails 6

Brayan Vasquez on July 27, 2020

Hi everyone!, This is my first post in the DEV community, and also my first post in English (my native language is Spanish). So first, I want to ap...
Collapse
 
inyerade profile image
inyerade

Good post, helped mea lot. The only change that I have to do is for production, that does notload the adminlte CSS and I has to add in the layout

stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload'
Enter fullscreen mode Exit fullscreen mode

I do not know if I miss other think but this solve my problem.

Collapse
 
danielmoncada14 profile image
DANIEL MONCADA

Hey, thank you very much for the contribution, I have a problem, I'm using rails 6.1.2 and ruby 2.7.2 i have done all the steps and the website didn't found the adminlte CSS, JS and images it appears on text plain.

I'm using W10.

Hope you can help me.

Greetings

Collapse
 
williambsb profile image
William Alencar

Thank you a lot and dont worry with english ...its very clear ( POrtuguese Native speaker here from Brasil )
I am trying to use admin-lte 3 in a project but even with this amazing instructions I am still getting errors due babel .

I am having
ERROR in ./app/javascript/packs/application.js
Module build failed (from ./.yarn/virtual/babel-loader-virtual-5e1e3f47a6/0/cache/babel-loader-npm-8.2.3-855681b984-78e1e1a919.zip/node_modules/babel-loader/lib/index.js):

Any ideia ?

Collapse
 
efrapp profile image
Efrain Pinto Ponce

Hey Brayan,
Thanks for this great post. It put me in the right direction!

Collapse
 
brayvasq profile image
Brayan Vasquez

I'm glad you found it useful 😃.

Collapse
 
silvaricardo1997 profile image
RICARDO MOREIRA

Hey Brayan,
Thanks for the post! helped me a lot!!!

Collapse
 
lcostam profile image
Leandro Miranda

Amazing post! It helped me a lot !!

Collapse
 
satyamoortithinkbiz profile image
SatyamoortiThinkbiz

Hello,
Where can i place all the plugins and pages available in Admin LTE3 theme inside my rails app?
I am using old rails version 4.8

Collapse
 
brayvasq profile image
Brayan Vasquez • Edited

Hi!. If you are using webpacker v4.x, you can install the packages using npm or yarn, and import these packages as we did in this guide with bootstrap.

If you are not using webpacker, you can look for a gem that does what you want to do.

You can also add libraries or plugins manually, like in this guide Integrate Ruby on Rails 5 and AdminLTE. However, you must be careful with the licenses.

Collapse
 
marcelleteri profile image
Marcel Leteri • Edited

Great effort! Thanks!!
Any plans of posting a tutorial where you use the AndminLTE UI to show real data from the database?
Cheers

Collapse
 
satyamoortithinkbiz profile image
SatyamoortiThinkbiz

Hey, Did you found any way for this?
Where can we keep all plugins in rails app?