Skip to content

Instantly share code, notes, and snippets.

@ursm
Created August 8, 2015 14:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ursm/6bd6be64e701ef2cd764 to your computer and use it in GitHub Desktop.
Save ursm/6bd6be64e701ef2cd764 to your computer and use it in GitHub Desktop.
form do |f|
f.semantic_errors
f.inputs do
f.input :name, input_html: {disabled: true}
f.input :tag_list, as: :select2_tags, collection: ActsAsTaggableOn::Tag.pluck(:name), input_html: {value: f.object.tag_list.to_s}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment