Skip to content

Instantly share code, notes, and snippets.

@sgrshah
Created July 9, 2013 19:54
Show Gist options
  • Save sgrshah/5960692 to your computer and use it in GitHub Desktop.
Save sgrshah/5960692 to your computer and use it in GitHub Desktop.
recipe form
<h1>Create a new recipe</h1>
<%= form_tag '/recipes' do%>
<%=label_tag 'recipe[name]', 'Enter Recipe:'%>
<label for="recipe[name]">Enter Recipe:</label>
<%=text_field_tag 'recipe[name]'%><br>
<input name="recipe[name]">
<%=label_tag 'recipe[ingredients_to_add][]', 'Enter Ingredient:'%>
<%=text_field_tag 'recipe[ingredients_to_add][]'%><br>
<%=label_tag 'recipe[ingredients_to_add][]', 'Enter Ingredient:'%>
<%=text_field_tag 'recipe[ingredients_to_add][]'%><br>
<%=label_tag 'recipe[ingredients_to_add][]', 'Enter Ingredient:'%>
<%=text_field_tag 'recipe[ingredients_to_add][]'%><br>
<%=label_tag 'recipe[ingredients_to_add][]', 'Enter Ingredient:'%>
<%=text_field_tag 'recipe[ingredients_to_add][]'%><br>
<%= button_tag %>
<%end%>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment