From: David Unric Date: 2013-02-16T21:53:26+09:00 Subject: Can not find variable in the current scope! Hello, when trying to add tracing output to an erb template I hit the following issue when trying to find where variable ex_title comes from. Tried to list all possible variables in the current scope, but there simply does not exists: <%= instance_variables.grep(/ex_title/) %> # renders an empty array <%= global_variables..grep(/ex_title/) %> # renders an empty array <%= local_variables..grep(/ex_title/) %> # renders an empty array <%= instance_variables.sort %> # renders array with many elements <%= global_variables.sort %> # renders array with many elements <%= local_variables.sort %> # renders array with many elements Whereas ex_title variable provably does exists: <%= ex_title %> # renders value "Categories - Online store" <%= ex_title.class %> # renders "String" <%= ex_title.object_id %> # renders "15825900" Where else can be found if not in global, local or instance variables ? -- Posted via http://www.ruby-forum.com/.