gem install rails --pre
rails new my_app -T
# in Gemfile
gem 'haml-rails'
gem 'simple_form'
group :test do
gem 'database_cleaner'
gem 'rspec-rails'
gem 'factory_girl_rails'
gem 'cucumber-rails'
gem 'capybara'
gem 'launchy'
end
bundle install
# in config/application.rb
config.generators do |g|
g.test_framework :rspec, :views => false, :fixture => true
g.fixture_replacement :factory_girl, :dir => 'spec/factories'
g.template_engine :haml
g.stylesheet_engine :sass
end
config.sass.preferred_syntax = :sass
In Rails 3+, the lib directory is no longer autoloaded.
# in config/application.rb
config.autoload_paths += %W(#{config.root}/lib)
config.autoload_paths += Dir["#{config.root}/lib/**/"]
rails g cucumber:install
rails g rspec:install
rails g simple_form:install