Skip to content

Instantly share code, notes, and snippets.

@skeller1
Created September 14, 2011 11:13
Show Gist options
  • Save skeller1/1216331 to your computer and use it in GitHub Desktop.
Save skeller1/1216331 to your computer and use it in GitHub Desktop.
simulate put
<form accept-charset="UTF-8" action="/categories/1" class="edit_category" id="edit_category_1" method="post"><div>
<input name="utf8" type="hidden" value="&#x2713;" />
<input name="_method" type="hidden" value="put" />
<input name="authenticity_token" type="hidden" value="2iX9wYiqhIvSxC7F/CwJGlA1D59K5paOQug4vrqPwFo=" /></div>
<div class="field">
<label for="category_name">Name</label><br />
<input id="category_name" name="category[name]" size="30" type="text" value="Max Mustermann" />
</div>
<div class="field">
<label for="category_description">Description</label><br />
<textarea cols="40" id="category_description" name="category[description]" rows="20">Max Mustermann aus Musterstadt</textarea>
</div>
<div class="actions">
<input name="commit" type="submit" value="Update Category" />
</div>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment