DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Lance has posted 24 posts at DZone. View Full User Profile

Installing Rails 3 With HAML And Thin

  • submit to reddit
sudo gem install rails --pre # beta version
sudo gem install railties --pre
bundle install # install gems in Gemfile
rails myapp
cd myapp
haml --rails . # install haml into app. add 'gem "haml"' to Gemfile
git init
git submodule add git:// lib/generators/haml # haml generator
rails generate scaffold person name:string dob:date age:integer male:boolean bio:text
rake db:migrate
rails server thin # add 'gem "thin"' to Gemfile