Skip to content

Instantly share code, notes, and snippets.

@maxim
Created February 8, 2009 05:56
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 maxim/60223 to your computer and use it in GitHub Desktop.
Save maxim/60223 to your computer and use it in GitHub Desktop.
<form action="/prototypes" class="new_prototype" enctype="multipart/form-data" id="new_prototype" method="post">
<div style="margin:0;padding:0"><input name="authenticity_token" type="hidden" value="xIhGb/nKQfrrKzaJ/J2iQOrupN+81AfreutXOdIoNqY="></div>
<p>
<label for="prototype_title">Title</label><br />
<input id="prototype_title" name="prototype[title]" size="30" type="text">
</p>
<p>
<label for="prototype_item_view">Item view</label><br />
<input id="prototype_item_view_attributes_picture" name="prototype[item_view_attributes][picture]" size="30" type="file">
</p>
<p>
<label for="prototype_surface_views">Surface views</label>
<div>
<label for="prototype_surface_views_attributes_new_1_description">Title</label>
<input id="prototype_surface_views_attributes_new_1_description" name="prototype[surface_views_attributes][new_1][description]" size="15" type="text">
<label for="prototype_surface_views_attributes_new_1_picture">Picture</label>
<input id="prototype_surface_views_attributes_new_1_picture" name="prototype[surface_views_attributes][new_1][picture]" size="30" type="file">
</div>
<div>
<label for="prototype_surface_views_attributes_new_2_description">Title</label>
<input id="prototype_surface_views_attributes_new_2_description" name="prototype[surface_views_attributes][new_2][description]" size="15" type="text">
<label for="prototype_surface_views_attributes_new_2_picture">Picture</label>
<input id="prototype_surface_views_attributes_new_2_picture" name="prototype[surface_views_attributes][new_2][picture]" size="30" type="file">
</div>
<div>
<label for="prototype_surface_views_attributes_new_3_description">Title</label>
<input id="prototype_surface_views_attributes_new_3_description" name="prototype[surface_views_attributes][new_3][description]" size="15" type="text">
<label for="prototype_surface_views_attributes_new_3_picture">Picture</label>
<input id="prototype_surface_views_attributes_new_3_picture" name="prototype[surface_views_attributes][new_3][picture]" size="30" type="file">
</div>
</p>
<p>
<input id="prototype_submit" name="commit" type="submit" value="Create">
</p>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment