i was trying to list the instance variables inside a controller but came up with
irb>HomeController.instance_variable_names => [\"@visible_actions\", \"@in
You can also call self.instance_variable_names directly from the controller code and then see them in logs.
self.instance_variable_names
class ProfilesController < ApplicationController ... def update logger.info("List of instance vars: #{self.instance_variable_names}") ... end end