ui
開発効率化 guard - ブラウザのリロードや RSpec の自動実行 rails コマンド rails new rails generate rails server unicorn ではなく unicorn-rails UI twitter-bootstrap-rails ではなく bootswatch-rails で Bootswatch を簡単に組み込む Bootstrap の f…
Bootstrap を Rails に組み込んだだけ では、form_for や form_tag を書く時に class: 'btn btn-primary' とか書かないといけない。 bootstrap-ruby/rails-bootstrap-forms なら form_for を bootstrap_form_for と書くだけ。 面倒な class を書かなくても B…
bokmann/font-awesome-rails を使うと、簡単に Font Awesome を導入できる。 インストール Gemfile に追加。 gem 'font-awesome-rails' インストール。 $ bundle ./app/assets/stylesheets/application.css に追加。 *= require font-awesome 使い方 fa_icon…
maxim/bootswatch-rails を使うと Bootswatch を簡単に組み込むことができる。 もう一つの定番、twitter-bootstrap-rails よりテーマのダウンロードが不要だったりと楽。 Gemfile Gemfile に下記を追加。 gem 'autoprefixer-rails' gem 'bootstrap-sass' gem…