Displaying 1 result from an estimated 1 matches for "to_text_input_tag".
2007 Feb 28
1
Rails 1.2 Bug (?): to_text_area_tag
...ng, we get the above noted
error.
This does not appear to be an error with the mooey code, however, since
input(...) seems to be intended to dynamically create the correct tag
depending on the "method" type. Therefore, if the method being used
with input(...) was a string, it would call to_text_input_tag which
assumes that :size is a Fixnum and everything would be alright.
What I did next was to change to_text_area_tag to recognize detect if
:size was a Fixnum. If it is, simply set both :options["rows"] and
:options["cols"] to the value of :size. Otherwise, use the original
l...