Skip to content

Instantly share code, notes, and snippets.

@QB
Created February 16, 2014 06:52
Show Gist options
  • Save QB/9030284 to your computer and use it in GitHub Desktop.
Save QB/9030284 to your computer and use it in GitHub Desktop.
Rails + Haml 環境の構築手順。備忘録的な文書なので、雑な書き方をしています。

とりあえず Rails 4 を準備する。

$ rails new hoge_project
$ cd hoge_project
$ vim Gemfile

このままじゃ動かないので、 Gemfile を編集する。

  • 真ん中らへんにある therubyracer をアンコメント
  • Haml を使えるようにする => haml-rails
  • rails cが打てるようにする => rb-readline
    gem 'therubyracer', platforms: :ruby
    gem 'haml-rails'
    gem 'rb-readline'

じぇむふぁいるの編集おわり

$ bundle install
$ rails s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment