bootstrap-sass-rails icon indicating copy to clipboard operation
bootstrap-sass-rails copied to clipboard

How about rails port of twbs

Open twetzel opened this issue 11 years ago • 4 comments

because from a rails perspective the new structure of twbs/bootstrap-sass really sucks, would be great to keep this project

everything should/can be copied from twbs/bootstrap-sass but keep the old vendor/assets/.. structure so the app or other gems can override original sass .. what is one of the best features of the asset-pipeline .. but completely destroyed by the new structure of twbs/bootstrap-sass since 3.2.0

thanks

twetzel avatar Jul 27 '14 00:07 twetzel

I'm sorry, but I might be missing the point. Looking at the bootstrap-sass gem they are just appending some include paths to the asset pipeline. This alone shouldn't cause any problems as far as I can see.

Dropping a file with the same name in a directory as an override didn't work with this gem at any point in time that I know off. If you wanted to override bootstrap in either one of the gems you needed to cherry-pick the partials you wanted and add your additional files at the appropriate places. That's what bootstrap-custom.scss is for with the official gem and it's the same way this gem has been employing for a long time.

mjonuschat avatar Jul 27 '14 21:07 mjonuschat

I did that sometimes (but didn't check in rails 4) .. problem is also you can't use from another gem because the tweak of gem pathes only affects the app not other gems .. had quiet a lot of problems with that structure change. maybe great for node.js and co, but its not for rails (in opinion a gem for asset pipeline should not tweak the asset pipeline)

twetzel avatar Jul 27 '14 21:07 twetzel

checked in rails 4 its still possible to override gem-css (at least when that is in vendor/assets/...) when you place an file with the same name in your application app/assets/.. folder (need the same relative path)

twetzel avatar Jul 27 '14 22:07 twetzel

Hmm, I can't get that to reliably work here - at the latest it fails when precompiling the assets. Did you try that in a production environment or just with a local dev setup?

mjonuschat avatar Jul 28 '14 16:07 mjonuschat