Sabtu, 28 Juni 2014

Getting Started with Ruby on Rails Part 1

Setup Repository
  1. rails new my_app -d postgresql --skip-bundle
  2. rvm gemset create my_app 
  3. touch my_app/.rvmrc && echo "rvm use 2.1.0@my_app" >> my_app/.rvmrc && cd my_app/
  4. yes
  5. Gemfile
  6. bundle install
  7. rails g rspec:install
  8. rm -rf test/
  9. Add to spec/spec_helper.rb
  10. mkdir spec/support && touch spec/support/factory_girl.rb
  11. factory_girl.rb
  12. rails g cucumber:install --capybara --rspec 
  13. touch features/support/database_cleaner.rb
  14. database_cleaner.rb
    Add to config/application.rb
  15. rails g devise:install
  16. rails g devise User
  17. rails g cancan:ability

Tidak ada komentar:

Posting Komentar