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
Gabe Med
7,457 Pointstrouble passing Code Challenge: More Parameter Modification [RESOLVED]
Trying to pass a code challenge. I can't figure out how to delete params[:status] in the "Code Challenge: More Parameter Modification" stage.
I wrote what was written in the video and it didn't work. also tried this line of code...
if params[:status] && params[:status].has_key?(:user_id) params[:status].delete(:user_id)
really stuck on this one and I have a feeling I'm missing something really simple.
2 Answers
Gabe Med
7,457 Pointsfound the answer in an older post. thanks to Jovani!
answer:
params.delete(:status) if params[:status]
Faye Bridge
4,879 PointsThanks for updating the post Gabe :)