title: Paperclip Only Showing Default Image
body: <p>Pretty new to ruby on rails and experimenting with some new gems.</p>
  
  <p>So I have an issue with paperclip only loading the default image.  No matter if I choose one or not.</p>
  
  <p>Here is my code.
  Schema</p>
  
  <pre><code>create_table "users", force: true do |t|
  t.string   "name"
  t.string   "email"
  t.datetime "created_at"
  t.datetime "updated_at"
  t.string   "password_digest"
  t.string   "remember_token"
  t.boolean  "admin",              default: 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>user model:</p>
  
  <pre><code>has_attached_file :image, :styles =&gt; { :medium =&gt; "300x300&gt;", :thumb =&gt; "100x100&gt;" },      :default_url =&gt; "/images/emptyuser.png"
  validates_attachment_content_type :image, :content_type =&gt; /\Aimage\/.*\Z/
  </code></pre>
  
  <p>call in the show.html.erb</p>
  
  <pre><code>      &lt;p&gt;
          &lt;%= image_tag @user.image.url(:medium) %&gt;
        &lt;/p&gt;
  </code></pre>
  
  <p>user controller</p>
  
  <pre><code>  def create
  @user = User.new(user_params)
  if @user.save
    sign_in @user
   flash[:success] = "Welcome to My App?!"
    redirect_to @user
  else
    render 'new'
  end
  end
  def update
  @user = User.find(params[:id])
  if @user.update_attributes(user_params)
    flash[:success] = "Profile updated"
    redirect_to @user
  else
    render 'edit'
  end
      private
  
  def user_params
    params.require(:user).permit(:name, :email, :password,
                                 :password_confirmation, :image)
  end
  </code></pre>
  
  <p>I'm pretty sure I had it working, and then when I added the default image I broke it, and now when I go back I can't get it to work..</p>
  
  <p>Anyone know why my images aren't uploading and only the default url is being loaded?</p>
  
  <p>I think I need some sleep. Sorry if this is a dumb fix, but I appreciate your help.</p>
  
  <p>EDIT:  Thanks for the link @hunteros I somehow missed that in the doc.  It is being saved now to the default location. I will check to see if explicitly changing them does the trick.</p>
  
  <p>EDIT#2: 
  Would this be the proper syntax and pathing? 
  Added to model user.rb</p>
  
  <pre><code>   :path  =&gt; ":rails_root/public/system/:class/:image/:id_partition/:style/:filename"
      :url =&gt; ":rails_root/public/system/:class/:image/:id_partition/:style/:filename"
  </code></pre>
  
  <p>The actual file structure is as follows: system/:class/images(is this :image?)/000(not sure here)/001/:style/actual file finally</p>
  
  <p>Seems a little intense.  Couldn't they just all go in one damn directory..?</p>
  
  <pre><code>:path  =&gt; ":rails_root/public/system/:class/:attachment/:style/:filename",
  :url =&gt; "/system/:class/:attachment/:style/:filename"
  </code></pre>
  
  <p>when I call user.image I get the path, and it seems to match up but I still see default i mage.
  Image URL: /system/users/images/medium/sarahanddee.JPG?1394522170</p>
  
  <p>are the numbers at the end of the string a problem?</p>