I''ve noticed lots of people online complain about not good documentation for Rails. I''m a PHP programmer but I''m a newbie on Rails. I''m creating a form with a drop-down menu. I finally got to do it. I noticed there is a html_options parameter for select. I was curious as to what other html_options are available but couldn''t find a list of options. I have been looking for it at the api http://api.rubyonrails.org but can''t seem to find it. Maybe I''m not looking in the right places. Can somebody please point me to a place in a documentation where I can find a complete list for the different options for html_options parameter? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Wed, Oct 6, 2010 at 7:54 AM, Leonel *-* <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> I noticed there is a html_options parameter for select.> Can somebody please point me to a place in a documentation where I can > find a complete list for the different options for html_options > parameter?http://www.w3.org/TR/html401/interact/forms.html#edef-SELECT HTH, -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org twitter: @hassan -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hi, html_options are just normal attributes you write on to the html-tags like: class, style, onchange and so on. Greets, Max. Am 06.10.2010 16:54, schrieb Leonel *-*:> I''ve noticed lots of people online complain about not good documentation > for Rails. I''m a PHP programmer but I''m a newbie on Rails. > > I''m creating a form with a drop-down menu. I finally got to do it. I > noticed there is a html_options parameter for select. I was curious as > to what other html_options are available but couldn''t find a list of > options. I have been looking for it at the api > http://api.rubyonrails.org but can''t seem to find it. Maybe I''m not > looking in the right places. > > Can somebody please point me to a place in a documentation where I can > find a complete list for the different options for html_options > parameter?-- Maksim Gudovsikov webit! Gesellschaft für neue Medien mbH Schnorrstraße 76 | 01069 Dresden Telefon +49 351 46766-0 | Telefax +49 351 46766-66 gudovsikov-jv+WEUQhfkc@public.gmane.org | www.webit.de Amtsgericht Dresden | HRB 15422 USt-ID DE 193477690 Geschäftsführer Sven Haubold -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Thanks, I hadn''t noticed it. But it seems there are other that are not normal attributes. For example, for select (drop-down menu) you have :prompt => "Select", which is not a normal select attribute. Maksim Gudovsikov wrote:> Hi, > > html_options are just normal attributes you write on to the html-tags > like: class, style, onchange and so on. > > Greets, Max. > > Am 06.10.2010 16:54, schrieb Leonel *-*: >> Can somebody please point me to a place in a documentation where I can >> find a complete list for the different options for html_options >> parameter? > > -- > Maksim Gudovsikov > webit! Gesellschaft f�r neue Medien mbH > Schnorrstra�e 76 | 01069 Dresden > Telefon +49 351 46766-0 | Telefax +49 351 46766-66 > gudovsikov-jv+WEUQhfkc@public.gmane.org | www.webit.de > > Amtsgericht Dresden | HRB 15422 > USt-ID DE 193477690 > Gesch�ftsf�hrer Sven Haubold-- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
> Thanks, I hadn''t noticed it. But it seems there are other that are not > normal attributes. > > For example, for select (drop-down menu) you have :prompt => "Select", > which is not a normal select attribute.Hmm, you''re right. I think here is something helpful: http://rubydoc.info/docs/rails/2.3.8/ActionView/Helpers/FormOptionsHelper http://rubydoc.info/ is imho the best ruby and rails docs on the net. Maybe it helps you next time you search something. Max.> Maksim Gudovsikov wrote: >> Hi, >> >> html_options are just normal attributes you write on to the html-tags >> like: class, style, onchange and so on. >> >> Greets, Max. >> >> Am 06.10.2010 16:54, schrieb Leonel *-*: >>> Can somebody please point me to a place in a documentation where I can >>> find a complete list for the different options for html_options >>> parameter? >> >> -- >> Maksim Gudovsikov >> webit! Gesellschaft f�r neue Medien mbH >> Schnorrstra�e 76 | 01069 Dresden >> Telefon +49 351 46766-0 | Telefax +49 351 46766-66 >> gudovsikov-jv+WEUQhfkc@public.gmane.org | www.webit.de >> >> Amtsgericht Dresden | HRB 15422 >> USt-ID DE 193477690 >> Gesch�ftsf�hrer Sven Haubold >-- Maksim Gudovsikov webit! Gesellschaft für neue Medien mbH Schnorrstraße 76 | 01069 Dresden Telefon +49 351 46766-0 | Telefax +49 351 46766-66 gudovsikov-jv+WEUQhfkc@public.gmane.org | www.webit.de Amtsgericht Dresden | HRB 15422 USt-ID DE 193477690 Geschäftsführer Sven Haubold -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.