Creating a new rails app

How to create a new project withouttest 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


Leave a Reply

Your email address will not be published. Required fields are marked *