Skip to content
mengfung.com
writing

Creating a new rails app

 ·  1 min read

How to create a new project without test unit and with postgresql database

# in shell
rails new myapp -T --database=postgresql
# edit Gemfile and add: rspec, haml, etc.
gem 'rspec-rails'
gem 'haml'
gem 'haml-rails'
gem 'factory_girl_rails'
bundle install
# init rspec
rails generate rspec:install
# convert layout to haml
rails generate haml:application_layout convert