From 352b12de21cfa0fa11b6cd0f9feb990c53ceff9b Mon Sep 17 00:00:00 2001 From: sgibson47 Date: Tue, 13 Nov 2018 13:53:21 -0600 Subject: [PATCH] move form to create making and list of makings inside #recipe-show div --- app/views/recipes/show.html.erb | 50 ++++++++++++++++----------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/app/views/recipes/show.html.erb b/app/views/recipes/show.html.erb index 02fb877..e719737 100644 --- a/app/views/recipes/show.html.erb +++ b/app/views/recipes/show.html.erb @@ -1,30 +1,30 @@
-
- -
-

Times Users Made <%=@recipe.name%>

-
-
    - -
+
+

Times Users Made <%=@recipe.name%>

+
+
    + +
+
-
-
-

Did you make <%=@recipe.name%>? How did it go?

-
- <%=form_for([@user, @making], :html => { :id => "new_making_of_recipe" })do |f|%> - <%= f.hidden_field :recipe_id, :value => @recipe.id %> - <%= f.label :rating%> - <%= f.number_field :rating, class: "form_fields"%> - <%= f.label :notes%> - <%= f.text_field :notes, class: "form_fields"%> -
-
-
-
- <%=f.submit :class => "submit_class"%> - <%end%> +
+

Did you make <%=@recipe.name%>? How did it go?

+
+ <%=form_for([@user, @making], :html => { :id => "new_making_of_recipe" })do |f|%> + <%= f.hidden_field :recipe_id, :value => @recipe.id %> + <%= f.label :rating%> + <%= f.number_field :rating, class: "form_fields"%> + <%= f.label :notes%> + <%= f.text_field :notes, class: "form_fields"%> +
+
+
+
+ <%=f.submit :class => "submit_class"%> + <%end%> +
-
+ +