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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T19:46:19+00:00 2026-06-18T19:46:19+00:00

I have a question model which can be created using the ckeditor gem with

  • 0

I have a question model which can be created using the ckeditor gem with Paperclip.
Each question can contain several attached pictures.
Each question has several answers and each answer can contain several attached pictures too (answers are created with ckeditor too).

The configuration for my ckeditor uploaded pictures is the following :

class Ckeditor::Picture < Ckeditor::Asset
  has_attached_file :data,
                :storage => :s3,
                :url  => ":s3_eu_url",
                :s3_credentials => "path to credentials",
                :path => ":class/:id/:basename.:extension",
                  :styles => {  :medium => "500x500>",
                                :thumb => "500x500>"},
                :s3_protocol => 'http'

validates_attachment_size :data, :less_than => 2.megabytes
validates_attachment_presence :data

def url_content
  url(:content)
end
end

With that configuration I do not know how to identify the pictures attached to a given question or answer. The aim is to remove the pictures from s3 when the question or the answer is deleted.

  • 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-18T19:46:20+00:00Added an answer on June 18, 2026 at 7:46 pm

    As I did not succeed in finding a solution to this problem using Paperclip, I start to use carrierwave that provides this functionality.

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

Sidebar

Related Questions

I have one question. I am using Apache CXF framework to generate model classes
I have created a form in which i embed another form. My question is
i have created the folloiwng view model class public class viewmodelclass { public IEnumerable<Question>
I have a django app with models as follows: A Question model An Answer
I have a question about Android Market/Google Play license model for paid applications. First
I have a question about the proper, best way to manage the model. I
I have a simple question regarding accessing member variables of a model object. I
i have a simple question. if i use play.db.ebean.Model to have my Model extend
Dynamic Data question: I have 2 fields of type Nullable<DateTime> on my model When
Newbie question. I have Django models that look like this: class Video(models.Model): uploaded_by =

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.