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
Giann Wilkerson
6,897 PointsCreating Friendships >>More Parameter Modification >> Code Challenge "Help Please"
Hello!
So I thought I was faring quite well until this code challenge. Im not sure wh,y although im so stuck on it! The task is to" Delete the params[:status] hash if it exists in the params hash." I have watched the video over a dozen of times and would like an explanation on this if anyone can help. Thanks ahead of time and much appreciated!
2 Answers
Jason Seifer
Treehouse Guest TeacherHey Giann, here's the way to pass the code challenge:
params.delete(:status) if params.has_key?(:status)
Giann Wilkerson
6,897 PointsJason, Once again, Thanks for your awesome insight. I believe I was over thinking it.Thank you again for you help.