Here's a way to look at all the instance variables your controller assigned:
In application.rb:
def map_assigns
@@protected_variables_cache ||= Set.new(protected_instance_variables)
instance_variables.map do |var|
next if @@protected_variables_cache.include?(var)
var = instance_variable_get(var)
ActiveSupport::Deprecation.silence do # var may now be deprecated
yield(var)
end
end
end
That may seem pointless, but now you can do something like this:
In your controller:
@thing = Thing.find(params[:thing_id])