Pratima Singh


110 Experience
0 Lessons Completed
0 Questions Solved


Posted in Action text rails 6

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

Posted in Action mailer rails 6

Hey Chris,

cannot send email from console using UserMailer.welcome_email.perform_now, geting this error

Traceback (most recent call last):
        1: from (irb):3
NameError (uninitialized constant UserMailer

why is it saying (uninitialized constant UserMailer)

Posted in Sending Emails with SMTP and Sendgrid Discussion

Hi Chris i am getting uninitialized constant NotificationMailer , not sure why

irb(main):001:0> NotificationMailer.welcome.deliver_now
Traceback (most recent call last):
        1: from (irb):1
NameError (uninitialized constant NotificationMailer)

i am using rails 6,