Skip to content

Instantly share code, notes, and snippets.

@mhenrixon
Created April 21, 2011 19:19
Show Gist options
  • Save mhenrixon/935282 to your computer and use it in GitHub Desktop.
Save mhenrixon/935282 to your computer and use it in GitHub Desktop.
The code that doesn't work with client side validations
=semantic_form_for [:admin,@frame], validate: true do |f|
=f.inputs do
=f.input :collection
=f.input :collection_id, as: :select, collection: @collections, label: 'Choose Collection'
=f.input :category, as: :select, collection: ['', 'Indoors', 'Outdoors'], label: "Select category"
=f.input :name
=f.buttons
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment