Tag: TwitterBootstrapWithRails
$ rvm install ruby-1.9.3-p125
rvm install ruby-1.9.3 --with-openssl-dir=/opt/local --with-iconv-dir=/opt/local
rvm --create 1.9.3-p125@tbrsample
rvm gemset use tbrsample
gem install rails --no-ri --no-rdoc
rails new tbrsample
gem "twitter-bootstrap-rails"
bundle install --without=production
rails g bootstrap:install
app/assets/javascripts/bootstrap.jp.coffee app/assets/stylesheets/bootstrap.css.less
rails g bootstrap:layout application fixed( or fluid)
rails g controller pages index
<div class="hero-unit"> <h1>Hello, よろしくな</h1> </div>
rails s
/* *= require twitter/bootstrap */ .pagination span.page.current, .pagination span.page.gap { float: left; padding: 0 14px; line-height: 34px; border-right: 1px solid #DDD; text-decoration: none; } .pagination span.first a { border-left: 1px solid #DDD; } .pagination span.page.current { border-top: 1px solid #DDD; border-bottom: 1px solid #DDD; background-color: #C7EEFE; }
gem 'i18n_generators'
bundle rails g i18n ja
ja: views: pagination: first: "« 最初" last: "最後»" previous: "‹ 前" next: "次 ›" truncate: "..."