I have read the summary about using Bootstrap in rails.

Source: Internet
Author: User

Luca pette's Twitter Bootstrap on rails is relatively simple. It uses Bootstrap's CSS directly and does not use less. It has tested three applications: simple_form, show_for, and kaminari (paging data. The main point is that kaminari has a compatibility problem. use Twitter-Bootstrap-kaminari-views to solve this problem. Other problems are not difficult.

@ Metaskill's less is more-using Twitter's Bootstrap in the rails 3.1 asset pipeline describes how to use Bootstrap's less functions and variables. I'm very interested, based on my experience, calling Twitter functions using the less syntax is more valuable. Install gem
'Less-rails-Bootstrap 'is enough. the technical details of the function that calls Bootstrap are omitted, basically less syntax.

Adding Twitter's Bootstrap CSS to your rails app author also read the above two articlesArticleThe main point is to confirm the @ metaskill method, and some detailed examples of less. I also mentioned that Sass can be used, but I have not read it in depth.

Twitter Bootstrap basics at railscasts.com is a complete example. Comments is also good, some HTML details. The main point is to use gems 'twitter-Bootstrap-rails ', which looks powerful.

Conclusion: It seems that I need to switch to less instead of sass, because Bootstrap uses less.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.