title: How to retrieve the hash values in the views in rails
body: <p>I have an action in the controller:</p>
  
  <pre><code>def user_detail
      @user_detail = UserDetail.find_by_id(11)
  end
  </code></pre>
  
  <p>And in the view:</p>
  
  <pre><code>&lt;%= @user_detail -%&gt; // displays me like #
  </code></pre>
  
  <p>I am trying to retrieve the contents of @user_detail: actually the hash contains    <code>{:empid=&gt;"11111", :prjtname=&gt;"aaaaa", :prjtrole=&gt;"Developer"}</code></p>
  
  <p>How do I display the user detail's empid and other values?</p>