title: display an attr_accessor in html.erb view
body: <p>I would like to display some properties of a ruby class to my view. I get a undefined method age error when I try to do so.</p>
  
  <p>person.rb</p>
  
  <pre><code>attr_accessor :age 
  </code></pre>
  
  <p>controller action</p>
  
  <pre><code>def show
   @persons = Person.all
   @persons.each do |p|
     p.age = 25
   end
  end
  </code></pre>
  
  <p>show.html.erb view</p>
  
  <pre><code>&lt;%= @persons.each do |p| %&gt;
     &lt;%= p.age %&gt;
  &lt;% end %&gt;
  </code></pre>