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!
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 PointsProblem with the Deleting Todo Items Step
EDIT: Apparently it fixed itself. I went back to the browser later and things worked perfectly.
Seems I can't get very far without running into another problem tonight. This time my code is passing with rspec but when I go into my browser and try to delete a todo item this error message is displayed on my screen.
"The action 'destroy' could not be found for TodoItemsController"
Here is my todo_items_controller code that I added in this lesson
def destroy
@todo_item = @todo_list.todo_items.find(params[:id])
if @todo_item.destroy
flash[:success] = "Todo List item was deleted."
else
flash[:error] = "Todo list item could not be deleted."
end
redirect_to todo_list_todo_items_path
end
Thanks for the help, I'm really trying to understand what's going on here
~ Rachel