title: Rails 3 - ActiveAdmin - Displaying ActiveRecord object instead of text
body: <p>I currently have a Rails 3.0.10 app and I made two models with simple associations:  has_many, and belongs_to.</p>
  
  <p>After installing the ActiveAdmin plugin and creating the corresponding Ruby resource files, I've noticed some strange behavior.</p>
  
  <p>Below, you can see that "Job File" belongs_to "Ernet Clients".  The associations are all working correctly, however, the display name is appearing as the actual ActiveRecord object instead of the client name.</p>
  
  <p><img src="https://i.stack.imgur.com/jVuYd.png" alt="enter image description here"></p>
  
  <p>This is the show view when under the "Job File" section:</p>
  
  <p><img src="https://i.stack.imgur.com/yVwAx.png" alt="enter image description here"></p>
  
  <p>But, if I go to view the actual client, the correct text appears:</p>
  
  <p><img src="https://i.stack.imgur.com/VtZrI.png" alt="enter image description here"></p>
  
  <p>There must be something going wrong in the "Job File" resource that is causing this, but I can't figure out what it could be.  After googling I found this:  <a href="http://groups.google.com/group/activeadmin/browse_thread/thread/2a261e070efa7bae" rel="noreferrer">http://groups.google.com/group/activeadmin/browse_thread/thread/2a261e070efa7bae</a></p>
  
  <p>Within the JobFile.register file I specified the display name with this:</p>
  
  <pre><code>filter :ernet_client, :display_name_methods =&gt; :display_name
  </code></pre>
  
  <p>This didn't work, though, and I cycled through all of the other available names to no avail.</p>
  
  <p>I looked up ActiveAdmin's dependencies and sass-rails seems to be the only one - but that is if you are using 3.1 and I'm using Rails 3.0.10.</p>
  
  <p>And finally, to be sure that my associations were indeed working, I opened up the Rails console and created a job file:</p>
  
  <pre><code>job = JobFile.new
  =&gt; #&lt;JobFile hash returned&gt;
  job.ernet_client_id = 2
  =&gt; 2
  job.ernet_client.client_name
  =&gt; Target
  </code></pre>
  
  <p>Everything seems to be working as it should.</p>
  
  <p>Anyone have any insight on to how to solve this?</p>