KEEP IN TOUCH

Join Newsletter

CALL NOW

Share with:


Recent Posts





Jason Fleetwood-Boldt

A method defined on a model that ends with = is an assignment method, so when ActiveRecord is trying to save an attribute to this model, you can define a custom action to perform the save. Useful, for example, when passing a hash to this...

Read More

<h1>CUCUMBER FIRST STEPS</h1> Much of the online documentation for Cucumber dives right in. Here are some pointers for those very first cucumber steps for absolute newbies. I also recommend Ryan Bates's RailsCast for a good introduction. Step 1. Install & configure your gems: sudo gem install rspec...

Read More

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 before Rails 2.3 go to test/test_helper.rb and change: class Test::Unit::testCase to: class ActiveSupport::TestCase ...

Read More

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 you have a 64-bit machine. Then I was able to run this. Note: it is important to give the gem installer the -with-mysql-config flag, and point it to the...

Read More

Some handy information about working with those less-than-percent sign things that appear in Emulated Ruby, or .rhtml files. examplewhat it does evaluate/execute ruby code evaluate & return to buffer (result will be included in output) strip whitespace before tag strip whitespace after tag ...

Read More

Some great shortcuts for script generation. I always try to start by building scaffold for any new entity, then remove the scaffold as needed, leaving only the pieces of the scaffold which I need. to generate a new model: script/generate scaffold Person age:integer first:string last:string some_list_id:integer * This...

Read More

Passenger is a great thing because it makes Rails apps able to be deployed on Apache. The installation is pretty painless, but there are a few gotchas you may want to know about. Start here: http://www.modrails.com/install.html sudo gem install passenger The installation will prompt you to add this...

Read More