[Rails] Re: List of html_options available

2014-11-18 Thread Ciro Santilli
This particular point is not well documented. The best thing to do is to read the source and experiment: https://github.com/rails/rails/blob/52fddcc653458456f98b3683dffd781cf00b35fe/actionview/lib/action_view/helpers/tag_helper.rb I conclude that: - boolean attributes must receive true or

[Rails] Re: List of html_options available

2010-10-06 Thread Leonel *-*
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

Re: [Rails] Re: List of html_options available

2010-10-06 Thread Maksim Gudovsikov
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: