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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T09:10:07+00:00 2026-06-03T09:10:07+00:00

I am using Carrierwave to upload the imgae, i have used in one model,

  • 0

I am using Carrierwave to upload the imgae, i have used in one model, now i want to use carrierwave to upload images in other model within same app,

i have create uploader as,

$ rails g uploader image2
$ rails g migration add_image_to_products image2:string

in model

attr_accessible :gallery_id, :name, :image2
mount_uploader :image2, ImageUploader

it uploads the file i have check in the folder, but not able to display the image,

image_tag product.image_url.to_s

Got this error

undefined method `image_url' for #<Product:0x49a3e68>

Note: In the same app i have used the Carrierwave and able to display the image as wel for that model which is Category, but have problem with Product model, i am trying to using carrierwave to upload files for Product model..

  • 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-03T09:10:08+00:00Added an answer on June 3, 2026 at 9:10 am

    shouldn’t it be

    image_tag product.image2_url.to_s?

    beacause you are using the uploader called image2!

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

Sidebar

Related Questions

I am using carrierwave to upload images to amazon s3. This works great on
I am not using carrierwave or paperclip for my file upload. I want to
Right now in my rails app I'm using Carrierwave to upload files to Amazon
I am using Rails and ActiveRecord. I have carrierwave mounted on one of the
Just started using carrierwave with Rails and things have been going smoothly with one
I am using carrierwave to upload images to my project, following along with Ryan
I'm using CarrierWave / Fog in a Rails application to upload videos to Amazon
Using CarrierWave and Amazon S3, I'm able to store images from local files, but
I have an application that is using both the carrierwave & tire gems. The
I'm using Rails 3.2, Carrierwave and simple_form. Currently, everything is working fine with one

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.