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

  • Home
  • SEARCH
  • 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 7971397
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T07:37:48+00:00 2026-06-04T07:37:48+00:00

ive been trying to render a picture from carrierwave. i believe it is uploaded

  • 0

ive been trying to render a picture from carrierwave. i believe it is uploaded correctly because when i view the page source, i see

<img alt="Photo_44" src="/uploads/user/image/59/Photo_44.jpg" />

however by clicking on that src url, i get

No route matches [GET] "/uploads/user/image/59/Photo_44.jpg"

im using the default settings for carrierwave. the image does correctly get uploaded to my image column in my users table and locally, the path

sasha/Desktop/rails_projects/myproject/public/uploads/user/image/59/Photo_44.jpg

exists as well. however it won’t display correctly. ive been following the railscasts

http://railscasts.com/episodes/253-carrierwave-file-uploads?autoplay=true

and reading

https://github.com/jnicklas/carrierwave

but i cant seem to figure out what is wrong. where i upload the image is here

<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), 
            :html => { :method => :put, :multipart => true }) do |f| %>
    <%= devise_error_messages! %>
    <%= render '/shared/fields', object: f.object, f: f %>
    <%= f.submit "Save changes", :class => "btn btn-large btn-primary", :style =>"display:block;" %>
    <div class="edit_avatar" >
        <%= f.file_field :image %>
    </div>
<% end %>

and im trying to render it by…

<%= image_tag @user.image_url.to_s %>

what am i doing wrong?
help would be appreciated = )
thank you

  • 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-04T07:37:50+00:00Added an answer on June 4, 2026 at 7:37 am

    Try set config.serve_static_assets = true if you haven’t yet, should help.

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

Sidebar

Related Questions

Ive been trying to display formatted content blocks from a xml file with no
i've been trying to send data to the following form from my view. i
I've been trying to render the entire canvas in an IWebBrowser2 control to a
Recently I've been trying to save on render time by minimizing the amount of
Ive been playing around with delegates trying to learn and I ran into one
Ive been pulling my hair out trying to figure out how to embed a
i am trying to create a fade effect with the following...ive been told im
Ive been trying to validate an html5 document with the following 2 lines in
I've been trying to get Java monkey engine-3 to render to a canvas/panel object
I've been stuck for hours trying to render a Core Animation layer tree into

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.