· 2 min read

Screencast: Einführung in Twitter Bootstrap

Downloads in verschiedenen Formaten:

mp4 mp4 webm ogg

Resourcen:

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]

Store<%= stylesheet_link_tag “application”, :media => “all” %> <%= javascript_include_tag “application” %> <%= csrf_meta_tags %>

<%= 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.
\[/html\]

app/assets/stylesheets/bootstrap_and_override.css.less

[css] @import “twitter/bootstrap/bootstrap”;

body { padding-top: 60px; }

@import “twitter/bootstrap/responsive”; [/css]

Back to Blog