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.