Hi all,I spoke to a few of ye about this on IRC today (thanks again for the tips!). Still stumped tho :-(I have a Padrino app which is causing me some confusion when I try to access app constants inside routes.I'm fairly green with Ruby, and I think this is my misunderstanding of how scoping works in Ruby, rather than a Padrino-specific issue.Here is a gist (simplified since the IRC discussion) showing the problem: https://gist.github.com/3760461/I would have thought I'd be able to access the constant unscoped.Apparently not. Can anybody explain why?Cheers,StuPS: I stepped through using the debugger as Declan suggested but that only confirmed what the console output shows - ie: the constant exists, inside the MyProject scope.--
You received this message because you are subscribed to the Google Groups "Ruby Ireland" group.
To view this discussion on the web, visit https://groups.google.com/d/msg/ruby_ireland/-/1tPdCmRdN3QJ.
To post to this group, send an email to ruby_i...@googlegroups.com.
To unsubscribe from this group, send email to ruby_ireland...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ruby_ireland?hl=en-GB.
Fyi, apologies to Tony whose message got held up in the RubyIreland moderation queue!
That's great guys. Thanks for the feedback & link - plenty for me to digest.
It's early days for me and Ruby, so still getting to grips with how these kinds of things are handled.
Appreciate the help!
Stu