-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bootstrap2 dependency patch. Include bootstrap statically to make it possible using bootstrap3 in your local application #1733
Conversation
Hi @bulleric, it looks as if there are remaining references to bootstrap that need to be removed before this pull request will merge cleanly. It looks like the one in lib/rails_engine/engine.rb is what's causing travis to stub its toe. |
Hrm, I'm still getting interference when trying to The working solution I have is renaming the css directory from I'm opening a pull request to see if it passes travis, so apologies if it's a distraction. |
remove bootstrap reference from lib/rails_engine/engine.rb
bump |
Not unless the author gets it to merge cleanly. |
Sry i'm currently really busy. I try to check it next week. |
Folks, let's not hassle the author, he'll get to it when he gets to it. If you want it sooner, you know what to do... |
Oddly when you namespace the bootstrap stylesheets folder (whether by renaming the folder directly or by placing it within another folder) and update the rails_admin bootstrap imports to match, tests fail with the error If bootstrap isn't namespaced at all, the tests pass but breaks Rails apps because those bootstrap files are available globally thus defeating the whole purpose of this pull request. Anyone have any thoughts on the mysterious error? Edit: To see an up-to-date branch demonstrating this issue, you can look at https://github.com/jcoleman/rails_admin/tree/vendorize-bootstrap-2 |
I've fixed the issues I mentioned earlier and created a new pull request: #1799 The new PR correctly namespaces all bootstrap files as well as fixes all tests by including the relevant lib code from the bootstrap-sass gem. |
Fixed by #1799. |
@jcoleman tried your suggestion. I am getting this error undefined method `options=' for true:TrueClass under this block in sass gem - sass-3.2.5/lib/sass/engine.rb @options[:filename] && @options[:importer] |
I'm not really setup to test it, but obviously it looks like there's an option that sets to |
@jcoleman I tried looking out for similar issues. most of them suggested clearing railsapp/tmp/cache folder. I tried doing that 3 three times. the first 2 times i got the same response as earlier then the third time i got error saying that the app/assets/javascripts/rails_admin/ra.i18n.coffee not found. so i just removed the require line for the same file in rails_admin.js and it worked. Theres something funny about the error |
I include bootstrap statically in rails_admin
The following files are not necessary i think because they are not includes in app/assets/stylesheets/rails_admin/rails_admin.scss.erb:
In other respects every application wich mount rails_admin will load this static bootstrap files.
Additionally i rename the bootstrap directory to bootstrap2 and adjust all bootstrap includes in assets/stylesheets/rails_admin/rails_admin.scss.erb
I think rails_admin only need the bootstrap directory because rails_admin.scss.erb doesn't include other files.
I think my branch is now stable with that patch and rails applications can be used with bootstrap3.