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 8607055
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T03:15:08+00:00 2026-06-12T03:15:08+00:00

In my app an user has the ability to upload their logo to display

  • 0

In my app an user has the ability to upload their logo to display on their profile page (using Carrierwave + s3).

On my local app the image path is this: https://s3.amazonaws.com/iemarkt/uploads/user/logo/squaredeye_336x336.jpg

But on my Heroku deployed app the image path is “/assets/”, which is causing an error and not letting the user upload the image.

Whenever I try to upload a file with Carrierwave + s3 on my Heroku app I get this error “We’re sorry, but something went wrong.”, looking into my log I see this error:

    2012-08-20T21:18:56+00:00 app[web.1]: Started GET "/assets/" for 24.90.124.181 at 2012-08-20 21:18:56 +00002012-08-20T21:18:56+00:00 app[web.1]:2012-08-20T21:18:56+00:00 app[web.1]: ActionController::RoutingError (No route matches [GET] "/assets"):

My store_dir

    "uploads/#{model.class.to_s.underscore}/#{mounted_as}/"

I unccomented this line in my production.rb (I read that Heroku uses Nginx, I dont know if there’s something else I need to do to get Nginx to work.)

  config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect'

I really don’t know why the path doesn’t lead to my s3 account.

Here’s my app

  • 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-06-12T03:15:09+00:00Added an answer on June 12, 2026 at 3:15 am

    I just tried to deploy your app and it works fine, see my user has an image uploaded

    http://young-reaches-9187.herokuapp.com/deals/1

    The only thing I changed was in the carrier wave settings, the region name was wrong:
    you were trying to use the region

    'eu-east-1'
    which doesn’t exists, so I changed it to :
    'us-east-1'

    The full list of regions is available here : http://docs.amazonwebservices.com/general/latest/gr/rande.html

    By the way you SHOULD NOT write your AWS credentials in your app. For instance I just uploaded to your bucket, but I could have detroyed your files.
    You should use environment variables.

    You should also add you database.yml in your .gitignore.

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

Sidebar

Related Questions

Im working on a rails app where a user has the ability to upload
I'm creating an app which has the ability for the user to pin a
In 4.0 the user has the ability to switchoff background data for an App.
If a user has installed my app by redeeming a promo code and we're
My app has a session timeout after 30 minutes. If the user has a
I created a MainActivity in which the user has a few app options, displayed
I am trying to see if the user has internet connection when the app
I signed in into the app with some credentials and that user has some
I want to check to see if a user has rated my app on
I'm writing a diagnostic app which needs to log what the user has set

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.