Pratima Singh

Joined

110 Experience
0 Lessons Completed
0 Questions Solved

Activity

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

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

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

amazon:
  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) %>

model

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
irb(main):004:0> 

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,

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

© 2020 GoRails, LLC. All rights reserved.