Rails

Rails3.1でCompassを使う

Install the Compass Stylesheet Authoring Framework | Compass Documentationに従って、Gemfileのgroup :assetsの中に以下を追加 gem 'compass-rails' そして、プロジェクトのディレクトリで次のコマンドを実行 $ bundle $ bundle exec compass init rails…

Rails(WEBrick)をローカルで使おうと思ったときにすること

デフォルトだとページのローディングが遅いので、設定を変更しておく。 webrickのconfig.rbにある :DoNotReverseLookup => nil を :DoNotReverseLookup => true にする。 RVM+Ruby1.9.3を使っているので、webrickは {HOME}/.rvm/rubies/ruby-1.9.3-p194/lib/…