title: Why is my string converting into a Fixnum when using .to_i rather than an integer?
body: <p>I'm running this line:</p>
  
  <p><code>&lt;%= @date[i].created_at.strftime('%d').to_i.class %&gt;</code></p>
  
  <p>and the output is a fixnum rather than an int. Why is this?</p>
  
  <p>From the controller: </p>
  
  <p><code>@date = Lesson.find(:all, :order =&gt; 'created_at ASC')</code></p>