Daily Archives: 7/23/2008

Rails Tag Helper default values

I was tooling through a form setting text_field sizes ( the default of :size => 30 is a bit big for me ) and my “cut-n-paste is bad” alarm when off. There had to be a better way to set the form tag defaults. A few minutes on Google and Noobkit provided an answer: InstanceTag::DEFAULT_* For instance, ActionView::Helpers::InstanceTag::DEFAULT_FIELD_OPTIONS [...]
Posted in Coding | Leave a comment