A
A
Alexander Gonchurin2014-09-23 22:31:04
Ruby on Rails
Alexander Gonchurin, 2014-09-23 22:31:04

How to put my theme on bootstrap-sass Rails?

You need to put your theme, for example from bootswatch.com/.
Each theme has less files with variables, how to stick them, as an additional theme for bootstrap on Rails. The bootstrap Sass docs says:

You can also include optional bootstrap theme:
@import "bootstrap/theme";

but how to stick a topic there?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Philipp, 2014-09-24
@imalexgo

So bootswatch has its own gem.
I did so.
Added this to the Gemfile:

# сам фреймворк от твиттера
gem 'twitter-bootstrap-rails'

# twitter bootstrap css & javascript toolkit
gem 'twitter-bootswatch-rails', '~> 3.2.0'

# twitter bootstrap helpers gem, e.g., alerts etc...
gem 'twitter-bootswatch-rails-helpers'

Then I installed everything.
Then I implement everything through the generator.
For example, I do this in the console:
rails generate scaffold Metric name:string constraint:text
rails g bootstrap:themed Metrics
rails g bootswatch:themed Metrics

When he swears, I say to re-record.
And at the end I smooth it with a file. Great time saver.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question