It is not right, because we need a timestamps for precompiled assets (asset-url()).
So, for production (when static assets served by Nginx or Apache etc..) it will give 404 error for glyphicons font.
Also, in many projects its needed to include bootstrap-sass not only for admin-panel, but for whole site.
Now its easy to do like so (assume that we have Admin::BaseController, and all other admin-controllers are inherited from that):
app/assets/stylesheets/application.css:
Plain bootstrap.css includes these strings:
It is not right, because we need a timestamps for precompiled assets (asset-url()). So, for production (when static assets served by Nginx or Apache etc..) it will give 404 error for glyphicons font.
Also, in many projects its needed to include bootstrap-sass not only for admin-panel, but for whole site. Now its easy to do like so (assume that we have Admin::BaseController, and all other admin-controllers are inherited from that): app/assets/stylesheets/application.css:
app/assets/stylesheets/main.scss:
and import AdminLTE for only admin namespace app/assets/sytlesheets/admin/base.scss:
sorry for my english =)