All threads / Action text rails 6

Ask A Question


You’re not receiving notifications from this thread.

Action text rails 6

Pratima Singh asked in Rails

Hi Chris,

i cannot upload the images from rich text drag and drop to s3 from dev.

my development .rb
config.active_storage.service = :amazon

my storage.yml

  service: Disk
  root: <%= Rails.root.join("storage") %>

  service: Disk
  root: <%= Rails.root.join("tmp/storage") %>

  service: S3
  access_key_id: <%= Rails.application.credentials.dig(:development, :aws, :access_key_id) %>
  secret_access_key: <%= Rails.application.credentials.dig(:development, :aws, :secret_access_key) %>
  region: <%= Rails.application.credentials.dig(:development, :aws, :region) %>
  bucket: <%= Rails.application.credentials.dig(:development, :aws, :bucket) %>


class Question < ApplicationRecord
  has_rich_text :body

also i have the right credentials for s3.

not sure what am i missing

Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 53,130+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2021 GoRails, LLC. All rights reserved.