Charles M.Gerungan
2005-Apr-08 21:53 UTC
What does the options parameter do for the Form Helpers?
I can''t find any docs on it. Could someone point me to where they''re at, or, if they''re not ready yet, explain them? -- Regards, Charles.
Tomas Jogin
2005-Apr-08 22:45 UTC
Re: What does the options parameter do for the Form Helpers?
The options argument is a hash of attributes and values that go on the resulting html tag. http://rails.rubyonrails.com/classes/ActionView/Helpers/FormHelper.html#M000313 Examples: text_field("post", "title", {"size" => 20}) text_area("post", "body", {"cols" => 20, "rows" => 40}) Size, cols and rows in the above two examples are just attributes that go on the resulting html tags (in this case input and textarea). Tomas On Apr 8, 2005 11:53 PM, Charles M. Gerungan <charles-y71OEPr+RUyakBO8gow8eQ@public.gmane.org> wrote:> I can''t find any docs on it. Could someone point me to where they''re > at, or, if they''re not ready yet, explain them? > > -- > Regards, Charles. > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >