title: paperclip working in development but not working in production?
body: <p>I'm pretty new to rails and seem to be having an issue with the paperclip gem. I installed the gem and it works well in development (localhost:3000) but when I'm running it on the heroku server, for some reason it does not want to attach files, and the app breaks (error 500 page). </p>
  
  <p>Here is the process i ran... I pushed my file to heroku, heroku ran rake db:migrate (to add paperclip migrations), and then I ran heroku restart (to restart the app with new migrations). This did not seem to help.</p>
  
  <p>Here is the code that I have for paperclip:</p>
  
  <p>user.rb model:</p>
  
  <pre><code>  has_attached_file :avatar, 
                      :styles =&gt; {:small =&gt; "70x70&gt;"},
                      :url  =&gt; "/users/:attachment/:id/:style/:basename.:extension",
                      :path =&gt; ":rails_root/public/users/:attachment/:id/:style/:basename.:extension"
    validates_attachment_size :avatar, :less_than =&gt; 500.kilobytes
    validates_attachment_content_type :avatar, :content_type =&gt; ['image/jpeg', 'image/png']
  </code></pre>
  
  <p>edit_form.html.haml view:</p>
  
  <pre><code>  = form_for (@user || User.new), :html =&gt; { :multipart =&gt; true } do |f|
    ...    
    .profile_picture.text_field
      = image_tag current_profile.avatar.url(:small)
      %br
      = f.file_field :avatar
  </code></pre>
  
  <p>Again, for some reason it runs great in development, but breaks down in production. Any pointers would be greatly appreciated... I just cant seem to figure this out and it's pretty frustrating. Thank you so much for your time and any help!</p>