title: How to take value for Object result in ruby on rails
body: <p>I want to print specific value from object result. here is i am execute SQL query and take all data from View tables, All data coming from "Employee_Information" view(table). 
  <strong>hr_controller.rb</strong></p>
  
  <pre><code>class HrController &lt; ApplicationController
  
    def internal_employee_page        
      @employees = MysqlConnection.connection.select_all("SELECT * FROM Employee_Information")
    end 
  end
  </code></pre>
  
  <p><strong>internal_employee_page.html.erb</strong> this is my first view</p>
  
  <pre><code>&lt;div id="job_details"&gt;
      &lt;% @employees.each do |emp| %&gt;
          &lt;%= render partial: "hr/employee_details", locals: {emp: emp} %&gt;
      &lt;% end %&gt;               
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>_employee_details.html.erb</strong> this is my second view</p>
  
  <pre><code>&lt;h3&gt; User Name : &lt;%= emp%&gt; &lt;/h3&gt;
  </code></pre>
  
  <p>like this I am trying to print all value
  <strong>then I got following result</strong>
  <a href="https://i.stack.imgur.com/hUjAJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hUjAJ.png" alt="enter image description here"></a>
  I want to print each value
  <strong>I tried this also</strong> in my second view</p>
  
  <pre><code>&lt;h3&gt; User Name : &lt;%= emp.full_name%&gt; &lt;/h3&gt;
  </code></pre>
  
  <p>But I got Error:
  <a href="https://i.stack.imgur.com/Qf4wV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Qf4wV.png" alt="enter image description here"></a>
  Please help me I tried every thing according to my knowledge, where am I wrong and what is problems</p>