Created
July 9, 2013 19:54
-
-
Save sgrshah/5960692 to your computer and use it in GitHub Desktop.
recipe form
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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