Skip to content

HiddenTag

Antonio Pagano edited this page Jan 29, 2018 · 3 revisions

HiddenTag is useful when adding hidden fields into your form or form_for. Usage is as follows:

//form_for
f.HiddenTag("Field")

//form
f.HiddenTag({"name":"Field", "value":"My Great Talk"})

Produce respectively

//form_for
<input type="hidden" name="talk-Name" value="My Great Talk" />

//form
<input type="hidden" name="Name" value="My Great Talk" />
Clone this wiki locally