Reputation: 1470
Hi in my rails app im using the twitter-bootstrap framework. I've generate a controller
rails g controller controller_name action1 action2
how i can add bootstrap to the views?
Can i use a generator?
Upvotes: 0
Views: 405
Reputation: 1705
Assuming you installed gem 'twitter-bootstrap-rails'
gem.
You just need to run generator rails generate bootstrap:install static
that will install all related files into your application.
Once you done with this, you can generate your layout and theme, like an example rails g bootstrap:themed Posts
You can find more details from twitter-bootstrap-rails
You can view video tutorial from railscasts Twitter Bootstrap Basics
Upvotes: 3