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 trialsamsrose
3,691 PointsIs the URI.escape redirect method deprecated in Ruby 3.0.0? I'm getting errors that prevent the redirect
Hello, I'm having issues with the last few chapters involving the URI module, specifically the redirect method. My form and application work the same as the tutorial thus far except for the redirect block after submitting my form.
From some searching regarding the error, redirect URI.escape("/#{params["title"]}")
- I suspect the URI.escape
method is deprecated and instead needs to be replaced with something like encode_www_form_component("/#{params["title"]}")
. I could be far off here or overthinking it but I'm curious if there's any explanation for why this would be failing.
Any assistance is greatly appreciated. Thanks. Below I included a screenshot of the backtrace from Rack.