title: How see the converted sql from ActiveRecord method in view, etc
body: <p>I will be happy if someone clear doubt, I can see objects in view by
  using <code>&lt;%= debug @object %&gt;</code> and lot of methods is there apart from view 
  like <code>.to_yml</code>, etc</p>
  
  <p>Is there any method available for seeing the converted sql from
  ActiveRecord method in view, etc. Although I can find it in console but
  it will confuse when we run multiple queries..</p>
  
  <p>example:</p>
  
  <pre><code>User.find :all
  </code></pre>
  
  <p>it will produce</p>
  
  <p><code>SELECT * FROM users;</code></p>
  
  <p>in output console</p>
  
  <p>But i want it in view are any other specific point like <code>yml</code> , etc ?</p>