Skip to content

Instantly share code, notes, and snippets.

@levicole
Last active August 29, 2015 14:22
Show Gist options
  • Save levicole/0e861c0cf85a311c4eba to your computer and use it in GitHub Desktop.
Save levicole/0e861c0cf85a311c4eba to your computer and use it in GitHub Desktop.
= form_for Activity.new do |f|
= f.hidden_field :activity_type, "shower"
= f.text_field :per_use
= form_for Activity.new do |f|
= f.hidden_field :activity_type, "bath"
= f.text_field :per_use
= form_for Activity.new do |f|
= f.hidden_field :activity_type, "toothbrush"
= f.text_field :per_use
@TeriPastorino
Copy link

i was sort of on the right track, even with the html, but didn't know the hidden_field. trying to read up on it. thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment