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
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
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:
3 matches
Mail list logo