TDD process in Rails

(Red, Green, Refactor) We wrote the test first, then fixed each subsequent failure(red), running the test again after each step, until it works (green). Write test first test “should get about” doget static_pages_about_urlassert_response :successend ERROR: NameError: undefined local variable or method `static_pages_about_url’ for Add route for about in config/routes.rb get ‘static_pages/about’ ERROR: AbstractController::ActionNotFound: The action… Continue reading TDD process in Rails

“rails -s” vs. “rails s”

I was running through the most excellent Ruby on Rails Tutorial 7th Ed. (by Michael Hartl) and wanted to launch the development web server. However, I mis-typed the command. “rails -s” brianvagnini@Brians-Mac-mini-2 sample_app % rails -s Running 2 tests in a single process (parallelization threshold is 50) Run options: –seed 49801 # Running: .. Finished… Continue reading “rails -s” vs. “rails s”