Displaying 2 results from an estimated 2 matches for "onautopilot".
Did you mean:
autopilot
2006 Apr 27
0
DRY validation
...e validation rules since you
don''t have to specify the name of the attribute over and over.
Plus it automatically sets validates_presence_of for the attribute
unless you set allow_nil as true -- as shown in the phone_code
attribute above.
The plugin can be downloaded from here:
http://onautopilot.com/oss/rails/active_attribute.tgz
One nice extra benefit is when I rearranged my validation rules
on a per-attribute basis I found a few attributes I forgot
to validate. I used the annotate_models plug to add a list of
every column to the top of my model, and proceeded to add
validation rules fo...
2006 May 23
11
putting the schema in the model files
THE SCHEMA IN THE MODEL
a small write up on ''putting the schema in the model''
This is a write up on an issue best covered in a mailing list thread
of Januari 2006 (see the links in the text), I repost it because I
think it deserves a place on the agenda.
== Why? ==
I was switching back and forward between the model files and the
schema.rb -- off course I have