Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1021051
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T11:15:09+00:00 2026-05-16T11:15:09+00:00

Setting up paperclip to use S3 on my local dev system was a snap.

  • 0

Setting up paperclip to use S3 on my local dev system was a snap. However, I am not able to get it to work on Heroku.

The file uploads successfully:

[paperclip] Saving attachments.
[paperclip] saving photos/2/small.jpg
[paperclip] saving photos/2/original.jpg

However, views that try to link to the upload get a routing error:

ActionController::RoutingError (No route matches "/photos/small/missing.png" with {:method=>:get}):

Notice how it is using ‘missing’ for the file name and is using ‘.png’ for the extension even though the file is a ‘.jpg’.

I have tried numerous combinations of the :url and :path options with has_attached_file according the various blog posts and tutorials I have found (including Heroku’s docs), but none seem to work.

What are the correct steps to use paperclip with S3 on Heroku?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T11:15:10+00:00Added an answer on May 16, 2026 at 11:15 am

    Found the problem: needed to update the database.

    heroku rake:db:migrate
    heroku restart
    

    I had done what I thought would have accomplished the same thing already: heroku rake db:schema:load, but perhaps that doesn’t work or something went wrong in the process.

    Anyhow, doing that, along with removing the calls to attr_accessor as suggested on another blog, solved the problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Setting up paperclip with S3 in my linux dev environment was a snap --
Setting global variables in my js file doesn't seem to work. How can I
Setting default values for System Configuration fields is well understood (via Chapagain and blog
Setting onchange event for CheckBoxList using the following code doesn't work. chkListUserGroup.Attributes.Add(onchange, document.forms[0].isRecordModified.value='true';); How
Setting up the sandboxes for all these option is not feasible right now. So
Setting up environment variables for hundreds of tests get old very quick. Is there
Today I am going to get as far as I can setting up my
setting type to hashed seems to not allow enablePasswordRetrieval. what if a user forgot
Setting the style attribute to elements is not working in IE 6/7 . But
Setting the background color programatically of an android TextView doesn't seem to work. I'm

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.