March 2010
4 posts
2 tags
Rails and midgets on unicycles
So let’s say you have a custom primary key for a table - a hash_id. It’s only ever populated externally, not by your rails application, so you figure you don’t really need to specify the custom primary key in the model, since it’s only ever read-only. class Subscriber < ActiveRecord::Base belongs_to :midget set_primary_key :hash_id end Well, think again. First...
Mar 6th
3 tags
ruby templating and css frameworks
Pure CSS: Blueprint CSS 960.gs More powerful: Compass - comes with support for Blueprint, and YUI css frameworks out of the box, written using Ruby SASS DSL. compass-960 - compass support for 960 Less - another DSL, also very very cool. 960.less - 960.gs stylesheet rewritten in Less 960 gist - 960.gs stylesheet rewritten and simplified in Less HTML templating: ERB - old and busted ...
Mar 2nd
2 notes
1 tag
Mar 2nd
2 tags
The Ruby Toolbox →
excellent resource for ruby and rails projects and plugins
Mar 2nd
2 notes