Skip to content

Instantly share code, notes, and snippets.

@joshsmith
Created November 14, 2012 00:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save joshsmith/4069474 to your computer and use it in GitHub Desktop.
Save joshsmith/4069474 to your computer and use it in GitHub Desktop.
= form_for(:artwork_tag, :url => "/artworks/#{@artwork.id}/tags/create", :html => { :method => :create, :class => 'form-horizontal' }, :remote => true) do |f|
.control-group
= f.hidden_field :artwork_id, :value => @artwork.id
= f.hidden_field :user_id, :value => current_user.id
= f.text_field :tag, :class => "input-medium"
= f.submit "Add Tag", :class => "btn btn-small btn-primary"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment