search for: readonlyformbuilder

Displaying 1 result from an estimated 1 matches for "readonlyformbuilder".

2007 Aug 02
0
Overridding readonly attribute in custom form builder
...ea, so I have tried to create an editable_text_area method. I have tried passing text_area(method, options.merge(:readonly=>false)) to the method, but it doesn''t work: the area is still not editable. Any suggestions on how to override the readonly value in my editable method? class ReadOnlyFormBuilder < ActionView::Helpers::FormBuilder def text_area(method, options = {}) super(method, options.merge(:readonly=>true)) end def editable_text_area(method, options = {}) text_area(method, options.merge(:readonly=>false)) end end --~--~---------~--~----~------------~-------~-...