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 trialHaris Beha
557 PointsAction Controller: Exception Caught
I followed all of the directions in the video. I ran the first rspec test with success. I'm having issues with the section where we edit the todo_list.rb model. After running my test, I get two examples and two failures. When running the test in the browser, I get the following error. I am running Ubuntu 12+ x64 on a Digital Ocean VPS.
SyntaxError in TodoListsController#create
/var/www/html/prop/odot/app/models/todo_list.rb:5: syntax error, unexpected keyword_end, expecting end-of-input
Extracted source (around line #27):
25 # POST /todo_lists.json
26 def create
27 @todo_list = TodoList.new(todo_list_params)
28
29 respond_to do |format|
30 if @todo_list.save
Rails.root: /var/www/html/prop/odot
1 Answer
Haris Beha
557 PointsFigured it out. Small typos can cause big issues! Thanks for your response!
Alan Johnson
7,625 PointsAlan Johnson
7,625 PointsIt looks like there's a problem with your TodoList model. Can you share your code in todo_list.rb?