title: Rails + Paperclip not giving image url in view
body: <p>I am setting up a basic blog with an optional image upload for the posts. The images are being uploaded properly and going to the right directory. However, when I go to the view it loads the default image:</p>
  
  <pre><code>photos/original/missing.png
  </code></pre>
  
  <p>Here is the model</p>
  
  <pre><code>class Post &lt; ActiveRecord::Base
    attr_accessible :body, :date, :feature, :poster, :title, :photo
  
    has_attached_file :photo, :styles =&gt; { :medium =&gt; "300x300&gt;", :thumb =&gt; "100x100&gt;" },
                      :url  =&gt; "/assets/posts/:id/:style/:basename.:extension",
                      :path =&gt; ":rails_root/public/assets/posts/:id/:style/:basename.:extension"
  
    attr_accessor :photo_file_name
    attr_accessor :photo_content_type
    attr_accessor :photo_file_size
    attr_accessor :photo_updated_at
  end
  </code></pre>
  
  <p>And in the view:</p>
  
  <pre><code>&lt;%= image_tag @post.photo.url %&gt;
  </code></pre>
  
  <p>For example, I upload an image with a post, and it gets uploaded to: </p>
  
  <pre><code>rails_root/public/assets/posts/5/original/image.jpg
  rails_root/public/assets/posts/5/medium/image.jpg
  rails_root/public/assets/posts/5/thumb/image.jpg
  </code></pre>
  
  <p>Migration</p>
  
  <pre><code>class AddAttachmentImageToPosts &lt; ActiveRecord::Migration
    def self.up
      add_attachment :posts, :photo
    end
  
    def self.down
      remove_attachment :posts, :photo
    end
  end
  </code></pre>
  
  <p>Schema:</p>
  
  <pre><code>  create_table "posts", :force =&gt; true do |t|
      t.string   "title"
      t.text     "body"
      t.datetime "date"
      t.string   "poster"
      t.boolean  "feature"
      t.datetime "created_at",         :null =&gt; false
      t.datetime "updated_at",         :null =&gt; false
      t.string   "image_file_name"
      t.string   "image_content_type"
      t.integer  "image_file_size"
      t.datetime "image_updated_at"
    end
  </code></pre>
  
  <p>Yet when the view is rendered, it can't find the image. What am I missing here?</p>