Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Rachel Addleman
10,162 PointsIssue with the Cleaning Up Code Video in the Todo List project
Hi! I'm trying to complete this video and I keep running into a problem when I try to load the edit items after creating a form. The error I get is as follows:
Missing partial todo_items/form, application/form with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :raw, :ruby, :jbuilder, :coffee]}. Searched in:
* "/home/treehouse/projects/odot/app/views"
Extracted source (around line #3):
1
2
3
4
<h1> <%= @todo_list.title %> - Editing Todo List Item</h1>
<%= form_for [@todo_list, @todo_item] do |form| %>
<%= render partial: form %>
<% end%>
I think it's saying it can't find my form document. The form document path is listed as /Users/Rachel/treehouse/projects/odot/app/views/todo_items/form.html.erb.
The edit document is located at /Users/Rachel/treehouse/projects/odot/app/views/todo_items/edit.html.erb.
I'm really not sure what is going wrong here so If anyone could help I would greatly appreciate it.
~ Rachel
2 Answers
Jason Seifer
Treehouse Guest TeacherHey Rachel Addleman do you have a "_form.html.erb" template instead? Can you possibly post your code somewhere for us to take a look at?
Rachel Addleman
10,162 PointsJason, I must have missed the "_" before the form when I watched the video the first couple of times. I changed the file name and everything seems to be working now. Thanks for your help! ~ Rachel