Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
Joel BuzzancoCourses Plus Student 2,738 Points
How to delete todo list (rails app)
In the video generate a scaffold, at around 4:00 he has created a todo list, is able to edit it, and finally deletes (destroys) the list. I am able to do all of this except to destroy the list. When I click destroy within my rails app, it directs me to just view the todo list that I created, instead of deleting it. I do not know why this is happening, as I coded my todo list as was shown in the videos. If someone has had this issue with rails or has any insight into this bug, I would love to hear back from you.
Jonathan Padilla5,493 Points
After going through multiple stackoverflow pages all I can find are references to the gem 'coffee-script-source' and how later versions 1.8+ don't work on windows.
So within the gemfile I added the line:
gem 'coffee-script-source', '1.8.0'
via command line to install the gem
restart your server with rails server and try again.
Hopefully that solved your issue.