Search code examples
ruby-on-railstwitter-bootstrapruby-on-rails-3.2asset-pipelinebootswatch

How to incorporate a (static) bootstrap template into rails asset pipeline?


I'm making a homepage with twitter bootstrap, rails 3.2.1 and twitter-bootstrap-rails gem (https://github.com/seyhunak/twitter-bootstrap-rails).

Wanted to try a different look other than the classic twitter one and found a great template called "United" from bootswatch.com.

I downloaded four files (bootstrap.css / bootstrap.min.css / variables.less / bootswatch.less) .

How can I incorporate these files into the asset pipeline?

Here is the listing from my 'app/assets' directory (the files are generated by twitter-bootstrap-rails gem).

/images/rails.png
/javascripts/application.js
/javascripts/bootstrap.js.coffee
/javascripts/products.js.coffee
/stylesheets/application.css
/stylesheets/bootstrap_and_overrides.css.less

I have no clue.


Solution

  • If you check on the install system of bootswatch you just need require the bootstrap.min download in website so add it in your application.css

    //= require bootstrap.min.css
    

    You can delete all bootstrap requirement too.