title: How to insert image in pdf using prawn
body: <p>I am using rails 4. I want to display an image in pdf, so I install prawn gem file and my code is</p>
  
  <pre><code>def index
    text "something"
    image "#{Rails.root}/images/logo.jpg"
  end
  </code></pre>
  
  <p>but i getting an error as <code>undefined method image</code> </p>