Rake tasks
How can I search for available rake tasks? rake -T | grep gem (where “gem” is the thing you are…
Achieving Developer Excellence with Automated Testing
Stuff relevant to Ruby on Rails.
How can I search for available rake tasks? rake -T | grep gem (where “gem” is the thing you are…
Gems are installed by sources, or a repository which holds several gems. Generally all the gems you will need are…
Go to script/console to open ruby in interactive mode. script/console loads your environments (everything in environment.rb and all your plugin…
Sometimes you’re in script/console and you make a change to your model files, but since Ruby on reads the models…
logger.debug WHAT_TO_OUTPUT ***** I think this syntax only works in controllers and outside of a controller you have to use…
When running Passenger (module for running Rails on Apache), the console log (output from puts) goes into the apache error…
<h1>CUCUMBER FIRST STEPS</h1> Much of the online documentation for Cucumber dives right in. Here are some pointers for those very…
when running tests, I’m getting an error: undefined method `use_transactional_fixtures=` for Test::Unit::testCase:Class (NoMethodError) This happens if you generated your tests…
First, isntall MySQL package installer from http://dev.mysql.com/downloads/mysql/5.1.html#downloads DON’T DOWNLOAD THE 64-BIT VERSION!!! You must download the 32-bit version even if…
Some great shortcuts for script generation. I always try to start by building scaffold for any new entity, then remove…