diff --git a/app/views/shared/_add_new_item_form.html.erb b/app/views/shared/_add_new_item_form.html.erb index e592540a..42a33364 100644 --- a/app/views/shared/_add_new_item_form.html.erb +++ b/app/views/shared/_add_new_item_form.html.erb @@ -14,7 +14,7 @@ <%= t('shared.toggle_multi') %> - <%= render :partial => 'todos/new_todo_form', :object => Todo.new %> - <%= render :partial => 'todos/new_multi_todo_form', :object => Todo.new %> + <%= render :partial => 'todos/new_todo_form', :locals => {todo: Todo.new} %> + <%= render :partial => 'todos/new_multi_todo_form', :locals => {todo: Todo.new} %> diff --git a/app/views/todos/_new_multi_todo_form.html.erb b/app/views/todos/_new_multi_todo_form.html.erb index 1e30579a..7a5be642 100644 --- a/app/views/todos/_new_multi_todo_form.html.erb +++ b/app/views/todos/_new_multi_todo_form.html.erb @@ -1,5 +1,3 @@ -<%- todo = new_multi_todo_form -%> -