title: Ruby on Rails: How to show all data in a Ruby variable?
body: <p>Within Ruby on Rails, what's the best way to find out what data a variable has? For example, let's say I have <code>@customer</code>, and I know that <code>@customer</code> will allow me to print <code>@customer.name</code>, <code>@customer.address</code>, and <code>@customer.phone</code>, but I don't know what other data <code>@customer</code> allows in the specific view I'm working in. How can I find out what data <code>@customer</code> contains within my current view?</p>
  
  <p><strong>How can I find out what data I can access within a variable in Ruby on Rails from within my current view?</strong></p>