title: How to set default image in paperclip ruby on rails
body: <p>Recently I installed <strong>Paperclip</strong> gem and I am struggling to make the default image work on my system, I put the image file inside <code>assets/images/pic.png</code>.</p>
  
  <p>This is code in my model <code>User</code>:</p>
  
  <pre><code>has_attached_file :pic,
    :styles =&gt; { :medium =&gt; "300x300&gt;", :thumb =&gt; "100x100&gt;" },
    :default_url =&gt; 'missing_:avatar.png'
    #:default_url =&gt; 'assets/images/avatar.png'
  
  has_attached_file :attach
  </code></pre>
  
  <p>This is code inside my <code>AddPicPaperClip</code> migration: </p>
  
  <pre><code>def self.up
    add_column :users, :pic_file_name,    :string
    add_column :users, :pic_content_type, :string
    add_column :users, :pic_file_size,    :integer
    add_column :users, :pic_updated_at,   :datetime
    add_attachment :users, :pic
  end
  
  def self.down
    remove_column :users, :pic_file_name
    remove_column :users, :pic_content_type
    remove_column :users, :pic_file_size
    remove_column :users, :pic_updated_at
    remove_attachment :users, :pic
  end
  </code></pre>
  
  <p>In order to display the image in my show I have this code:</p>
  
  <pre><code>&lt;%= image_tag @user.pic.url(:medium) %&gt;
  </code></pre>
  
  <p>Could you help me find a solution, in order to show a default picture before a user inputs his own profile picture?</p>