Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### Install Rails 3.1 RC
- ````gem install rails --pre````
- ### generate new app, skipping Test::Unit file generation
- ````rails new my_app -T````
- ### Set up Gemfile
- ````ruby
- # in Gemfile
- gem 'haml'
- gem 'haml-rails', :group => :development
- gem 'devise'
- gem 'simple_form'
- # gem 'formtastic'
- group :test do
- gem 'database_cleaner'
- gem 'rails3-generators' #mainly for factory_girl & simple_form at this point
- gem 'rspec-rails'
- gem 'factory_girl_rails'
- gem 'cucumber-rails'
- gem 'capybara'
- end
- ````
- ### Install our gems
- ````
- bundle install
- ````
- ### Configure generators to use the gems we want, and skip view spec generation
- ````ruby
- # 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.form_builder :simple_form
- g.template_engine :haml
- end
- ````
- ### turn on autoloading of lib directory and all its subdirectories
- In Rails 3+, the lib directory is no longer autoloaded.
- ````ruby
- # in config/application.rb
- config.autoload_paths += %W(#{config.root}/lib)
- config.autoload_paths += Dir["#{config.root}/lib/**/"]
- ````
- ### run install tasks for our gems
- ````
- rails g cucumber:install
- rails g rspec:install
- rails g simple_form:install
- rails g devise:install
- rails g devise User
- ````
Add Comment
Please, Sign In to add comment