Woohoo. Great timing. Just started re-doing this to learn 3.2. Do you inject bootstrap into the app or use Seyhunak's twitter-bootstrap-rails gem?
The book uses the excellent bootstrap-sass gem. I have personal assurances from the gem's author (tmcdonald) that he will keep it up-to-date with the latest changes in Bootstrap.
The Ruby on Rails Tutorial, now with Twitter's Bootstrap
11–20 of 58 posts
Re: The Ruby on Rails Tutorial, now with Twitter's Bootstrap
#12Earlier quoted context omitted.
It's using my bootstrap-sass gem. [1] [1]: https://github.com/thomas-mcdonald/bootstrap-sass
I've been wanting to use Bootstrap with some other CSS syntaxes for awhile, and I was wondering how you manage the conversion from less to scss and stay up to date with the latest Bootstrap changes?
The main exception to this was for 2.0, which had a separate branch for a while so that people could still use bootstrap-sass while updating their application to the new syntax. When 2.0 was merged into master, since it had been under such heavy development I reconverted the entire codebase.
There are a few quirks with the conversion from Less to SCSS, but these tend to be few and far between, and are usually down to me missing a variable somewhere. The main one is the use of namespaced mixins[1]. SCSS doesn't support this, so I have to prefix/suffix the namespace to each mixin within the namespace. Aside from that, and method names/variable notation, there (appears to be, can't speak authoritatively since I haven't really used Less) little difference between the two.
Re: The Ruby on Rails Tutorial, now with Twitter's Bootstrap
#13Re: The Ruby on Rails Tutorial, now with Twitter's Bootstrap
#14Re: The Ruby on Rails Tutorial, now with Twitter's Bootstrap
#15Re: The Ruby on Rails Tutorial, now with Twitter's Bootstrap
#16Re: The Ruby on Rails Tutorial, now with Twitter's Bootstrap
#17Interested in the rationale to choose bootstrap-sass over bootstrap-less. I chose the latter, though can't say I know enough about the divide to feel strongly one way or the other. It works well enough.
Re: The Ruby on Rails Tutorial, now with Twitter's Bootstrap
#18Interested in the rationale to choose bootstrap-sass over bootstrap-less. I chose the latter, though can't say I know enough about the divide to feel strongly one way or the other. It works well enough.
Particularly: sass == Ruby. less == JavaScript.
I'm not saying that's good or bad, but it's probably "why".
Re: The Ruby on Rails Tutorial, now with Twitter's Bootstrap
#19Interested in the rationale to choose bootstrap-sass over bootstrap-less. I chose the latter, though can't say I know enough about the divide to feel strongly one way or the other. It works well enough.
Re: The Ruby on Rails Tutorial, now with Twitter's Bootstrap
#20Earlier quoted context omitted.
The book uses the excellent bootstrap-sass gem. I have personal assurances from the gem's author (tmcdonald) that he will keep it up-to-date with the latest changes in Bootstrap.
Just out of curiosity, where in the tutorial do you start including bootstrap material? I'm currently in the middle of chapter 4, and am planning to hammer out as much of the rest I can this weekend.