Permalink
Browse files

Extract instance variables from the partial

  • Loading branch information...
1 parent 9fe4fd6 commit 51178821de620570b5f91cfde9299d93ab5f2fdd @GCorbel committed Jun 17, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 app/views/projects/_form.html.erb
  2. +1 −1 app/views/projects/edit.html.erb
  3. +1 −1 app/views/projects/new.html.erb
@@ -1,4 +1,4 @@
-<%= simple_form_for @project do |f| %>
+<%= simple_form_for project do |f| %>
<%= f.input :title %>
<%= f.input :url %>
<%= f.button :submit %>
@@ -1 +1 @@
-<%= render 'form' %>
+<%= render 'form', project: @project %>
@@ -1 +1 @@
-<%= render 'form' %>
+<%= render 'form', project: @project %>

0 comments on commit 5117882

Please sign in to comment.