I seldom start new rails application, but when the exception happens I often end up with a ‘task’ and the knowledge that there is a better way to handle the command line, but I can’t remember!
Therefore I note a this wiki wiki page some plain and ordinarily commands, don’t expect fancy tricks as it is more of a mnemonic for me. For details check
rails --help or
rails generate --help!
$ rails new cool-app $ cd cool-app $ rails server
$ echo "gem 'rspec-rails'" > Gemfile $ bundle install $ rails generate rspec:install
and generate a simple user application with specs:
$ rails g scaffold User name:string birthday:date
Find outdated gems with
bundle outdated and update installed ones with
Generate default rspec test for existing controller ‘events_controller.rb’
$ rails g rspec:controller Events