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”

(very) Simple Responsive Web Design

It’s no secret that mobile devices are everywhere; according to https://www.oberlo.com/statistics/mobile-internet-traffic, 59.4% of Internet Traffic is from mobile devices. There are a few challenges to designing for a mobile device. For one, we (as designers) have to worry about file sizes again, due to bandwidth restrictions (dial up modem speeds, anyone?). The other major challenge… Continue reading (very) Simple Responsive Web Design