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 trialShane McC
3,005 Points[Solved] Form Error Message
Hi
I'm getting an error message when I create the form on my todos.create page. The error message is below. My routes.php file is below as well. What am I doing wrong?
Route [todos.create] not defined. (View: C:\wamp\www\laravel\teamTreeHouse\app\views\todos\create.blade.php)
Below is my routes.php file Route::get('/', 'ToDoListController@index'); Route::get('/todos','ToDoListController@index'); Route::get('todos/{id}','ToDoListController@show'); Route::get('/create', 'ToDoListController@create');
Shane McC
3,005 PointsThanks Robert, Worked perfect.
pietro capriata
18,066 Pointsyep, but in the video doesn't appeart this input... why?
1 Answer
pietro capriata
18,066 PointsNo excuseme.. you need to change routes.php with this code
Route::resource('todos', 'TodoListController)
Robert Mylne
13,708 PointsRobert Mylne
13,708 PointsI'm new to this course as well but I think this may be your problem:
Route::get('/create', 'ToDoListController@create');
Change to this:
Route::get('/todos/create', 'ToDoListController@create');