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
Yhanco Grey Esteban
2,727 PointsDestroying Friendships
Hi,
In the last part of the video where I try to delete the friendship, I'm getting this error:
No route matches [DELETE] "/user_friendships/15/accept"
Already checked the routes.rb file in the Project Files Uploaded, but my route file is identical. Did I forget anything?
Thank you
1 Answer
Richard Wigley
3,733 PointsThe error is either in the link_to delete statement so check the approriate app/view/.... html.erb file. Or in the routes file which you can test with rake routes - yeah I know you said it's identical but still ;-) It's a good bug because I've always found it to be one or the other.
Rich
Yhanco Grey Esteban
2,727 PointsYhanco Grey Esteban
2,727 PointsI used a comparison software with the routes file, so I was sure of it, haha. It was actually in the link_to statement, I was sending it to a wrong path
Thank you very much for pointing it out :)
Richard Wigley
3,733 PointsRichard Wigley
3,733 PointsThat's great .... now you can kill one of the main rails bugs... just think of all the poor souls who typed it correctly and are going to have to learn about the bug the hard way later on ;-)
Rich