Focussed testing in RubyMine

How to setup focussed testing in RubyMine:
Place focused_test.rb  in the folder above your $RAILS_ROOT (so multiple projects can share it).
In RubyMine:
Preferences -> External Tools -> Add

Name: Focussed Test
Group: Whatever
Program: /usr/bin/ruby
Parameters: $ProjectFileDir$/../focused_test.rb -b –line $LineNumber$ -f "$FilePath$"
Working Directory: $ProjectFileDir$

Preferences -> KeyMap
Create a shortcut to the external tool. I use F10.

Git simple branching, published to remote

Simple git branching technique in my environment (master copies of repos hosted on my remote server):
Create new branch locally:

$ git branch <branch name>

Push the branch to the remote repository:

$ git push origin <branch name>

Now for the wrinkle: as mentioned here, the local branch is not yet tracking the remote branch. To fix this, overwrite [...]

SV-Ruby Meetup, 2009-03-19

Yehuda Katz talked about Rails 3
Rails API should not change! It’s a mistake to change the API and the implementation at the same time (think Ruby 1.9 language and VM).
ORM Agnisticism
With for_for @obj, @obj can be an ActiveRecord, DataMapper, CouchDB, SimpleDB, Sequel object.  Two interfaces are now support for ORM objects, ActiveRecord/DataMapper style: errors, #each, [...]

ActiveRecord performance: validation and associations

If you have two models associated in some way, it is usual to add a validates_presence_of validator to ensure that the models are connected before saving. However, be aware that there are two ways of doing this with different performance ramifications:

class BlogEntry < ActiveRecord::Base
belongs_to :blog
validate_presence_of :blog
end

During validation, Validates_presence_of :blog causes ActiveRecord [...]