Upgrading From Rails 2.0.2 to Current Version

0
Rails
Coming back to Rails after a long time and happy to have found GoRails. Have the fundamental constructs around activerecord and actioncontroller changed? Any suggestions on best approach to migra...
Admin posted

Using Active Storage to upload images not working.

0
Rails
Hey guys, I could really use your assistance with my current app. I decided to add the active storage feature and followed the guide on how to set it up. I did a practice project first to test the...
Shan Siddiqui posted

2factor Auth best practice, Please help

0
Rails
Thank you, Chris. I have watched the Gorails 2factor Auth tutorial. I have a couple of questions that leave me with a few questions. - I imagine a scenario where a person has left their laptop open...
chigreen posted

Heroku and Schedule Jobs

0
Rails
Hello! I'm implementing a new feature in my app that e-mailing all users every first day of the month. My app is running in Heroku. My question is: what is the best way to achieve this feature? W...
Matheus Leite posted

Validation error not showing up in browser

0
Rails
articles controller class ArticlesController < ApplicationController def show @article = Article.find(params[:id]) end def index @articles = Article.all end ...
kartik362 posted

How to use route.db or how to debug

2
Rails
In Apache logs: GET https://xxxxxxxxxx.com/ HTTP/1.1" 404 1722 in routes.rb root "crm#index" rails routes|grep root root GET / ...
namanh-dot replied

How do I create an input field for a polymorphic association?

7
Rails
For the sake of this question, lets assume I run a hotel and I want to make a system that manages the bookings of my hotel rooms. While most of the time I book `Guests` in my hotel rooms, `Employe...
Solved

How to add logo image to mailer

7
Rails
Hi how can we add image from my assets to the email like my logo when sending email to the users.

Github actions & RAILS_MASTER_KEY

1
Rails
Hey Chris, hey community, I've been following along your guide on setting up GitHub-actions with Rails (https://gorails.com/episodes/github-actions-continuous-integration-ruby-on-rails), however I...

Ruby on rails - what is the best way to add social authentication in the project?

4
Rails
I want to add social authentication in my project like user can also login with Facebook, Github, and Google. I have already added the simple authentication with the devise gem. And now I want to ...

How do I check for validation for redirection to void cyclic redirection loop?

0
Rails
I have a redirection model with two columns `to` and `from`. I also have a frontend UI, where the redirections can be added. I need to know whether is there any solution to avoid cyclic redirect l...
tewtetswtestws posted

Integrating Action Mailbox with Sendgrid

0
Rails
Hi, I was integrating action mailbox in Rails 6 application. I've tried various articles but i am not receiving any reply email in my application. Only newsletter emails from 3rd party are arriving...
Saad Abdullah posted

Rails with Stimulus Reflex and AnyCable too slow

0
Rails
Hi, I am using stimulus reflexes with AnyCable but in production, the site becomes really slow after spending 10-15 minutes on the same page doing multiple operations. But after refresh it works fi...
ahmadkamrans posted

How to quiet Delayed Job logs in development?

1
Rails
Rails 3.2.14 / Ruby 2.0.0 / Delayed Job 4.1.4 / Foreman I'm running a worker with Delayed Job, starting the process with Foreman. It all works fine but my dev logs are full of Delayed Job SQL sta...

How do I remove associated records?

1
Rails
I have these associations. Course has_many :assignments, class_name: 'CourseManagement::Assignment' has_many :students, through: :assignments, source: :student Assignment: belongs_to :course, cl...

How do I assign multiple user_id's to one work order record

0
Rails
i got a question ive been scratching my head for a few days on a solution to a problem. I currently have work order that we assign a single user to and im trying to figure out the best way to assig...
Austin Klenk posted

How do i use tom-select with stimulus and hotwire?

3
Rails
I'm using tom-select to either select from the options or create record in the modal. The problem happens when the form submits successfully and that newly created record is now have been selected ...
Archonic replied
Solved

Override CSS in Gem with CSS from app

0
Rails
Hi, I'm working on a Rails Gem. The gem provides one view and a basic stylesheet for it. When installed in an app, i'd like to be able to override the basic styles with other styles in the app it...
Neil Tonge posted

How do I include FontAwesome Pro in a Rails 7 project?

2
Rails
I own a license to FA Pro, and I want to use it in a new Rails 7 project. It doesn't look like I can do an importmap include of the pro font awesome, or if so, I'm doing it wrong. So I downloaded ...
ramzieus replied

Form not displaying errors

1
Rails
Here is my user.rb file class User < ApplicationRecord has_secure_password validates :email, presence: true, format: { with: /\A[\w.+-]+@\w+\.\w+\z/, message: "must be a valid email add...
Ordin replied