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

Ruby

Ruby Retry Invalid syntax

I wasn't real sure where to put this who to tell/contact but in the Ruby Foundations >> Loops >> Flow Control ya'll go over the Retry command which has been (from what i have read) depreciated to only being able to be used with a begin statement.

"Retry was changed in Ruby 1.9 to only work on a rescue clause - you can only use it to "retry" a begin end block that has failed." - someone on a forum

6 Answers

I ran into the same problem...

until you guys fix the video, I'd suggest you put a little "Update" note (where you usually put links related to the video)

ps. i also suggest that the quiz question about retry in loops be removed

thanks

I just ran into this issue and agree with George. A note would be very helpful.

Jason Seifer
STAFF
Jason Seifer
Treehouse Guest Teacher

Hi Chris,

Thanks for the heads-up! We're aware of the issue and that is on the list of videos to re-do. Sorry for the trouble!

Your good love the videos learning a lot just figured I would notify someone of this. Keep up the awesome work.

Chris

I ran into this same problem.

So then what would be the correct way to use the retry loop?

I just ran into this as well, I guess it hasn't been corrected yet? Spent a lot of time looking back over things :(

Still there.