Tag Archives: ActiveRecord

Default stegosaurses

Ever heard of Jonathan Viney’s active_record_defaults plugin? It’s fantastic. In a nutshell, it enables you to specify default values for model attributes. If an attribute isn’t set when initialising a new instance, the attribute’s set to whatever the default value … Continue reading

Posted in Coding, Ruby Tagged , , ,