· 2 min read
Screencast: Einführung in Twitter Bootstrap
Downloads in verschiedenen Formaten:
Resourcen:
- Twitter Bootstrap
- twitter-bootstrap-rails
- Twitter Bootstrap, Less, and Sass: Understanding Your Options
terminal
[bash] rails new store rails g scaffold product name price:decimal —skip-stylesheets rake db:migrate rails g bootstrap:install rails g bootstrap:themed products -f [/bash]
Gemfile
[ruby] group :assets do gem ‘twitter-bootstrap-rails’ end [/ruby]
layouts/application.html.erb
[html]
<%= yield %>
About Us
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.app/assets/stylesheets/bootstrap_and_override.css.less
[css] @import “twitter/bootstrap/bootstrap”;
body { padding-top: 60px; }
@import “twitter/bootstrap/responsive”; [/css]