Search Results for "active-amdin-real-time-notification"

Lessons













Forum Threads

Recurring Domain Expiration Syncing Discussion

6
General
Hi Chris, I followed your video and at 6:22, I couldn't see the Turbo::Streams and Domain::SyncJob (top 2 jobs). I could see the Domain::SyncAllJob (3rd one). Inside my /domains listing page, the...
Eric Chua replied

HAtchbox problem with solid_queue / active_storage ...

0
Rails
Hello i have an account on hatchbox everything work fine on development but crash on PRODUCTION i have a problem with solid_queue i think .... Here the log : ``` [49fdd936-fd24-4c71-b0b1-7d766...
Code Capsules posted

How to Optimize ActiveRecord Queries with Large Data Sets in Rails 7?

6
General
I'm working with a large dataset in Rails 7 and some of my Active Record queries are getting slow. I've tried using .includes and .select, but performance still lags. What are the best practices fo...
Patrick Stevenson replied

How To Add Impersonation To Rails Authentication Generator Discussion

10
General
I really love how flexible and easy to customize the new Rails 8 authentication generator is. Think we should cover 2 Factor Auth next?

Acts as Tenant with Active Storage

2
Gems / Libraries
Hello! I have been developing a multitenancy app using acts_ac_tenant. Until now it works really well but now I want to add some support for storing some files. I got a little bit confused about ho...
Andres Carvajal replied

How we can use Like queries for searching on encrypted data? I used default Active Record Encryption

0
Databases
class Propose < ApplicationRecord encrypts :email, :phone_number, :name, deterministic: true scope :search_filter, -> (params) do if params[:keyword].present? where(search_filte...
Vishwani patlan posted

Integrate ActiveStorage to existing association system

0
Rails
I have attachment system inplace and thinking to integrate active storage with existing associations, I have polymorphic association and had_many through association, where as active storage using ...
sam posted

Single Table Inheritance (STI) with ActiveRecord in Rails Discussion

8
General
Thanks Chris, It's funny that we just stopped using this design pattern at Gitlab https://docs.gitlab.com/ee/development/database/single_table_inheritance.html
Dale Holmes replied

How to use Solid Queue in Rails with Active Job Discussion

12
General
What's great about the puma plugin is the cost savings when running on something like Heroku. Only one dyno needed for small apps including a Queue. Something that was quite expensive before becaus...
Matthias replied

Solving Active Storage InvalidAuthencityToken Error

0
Rails
I have an application which is on lvh.me and i am trying to upload image using trix editor from my subdomain sample.lvh.me but for some reason i keep getting this error ``` Started POST "/rails/a...
Henry posted

Custom Attribute Serializers with ActiveRecord in Rails Discussion

7
General
This feels much simpler for custom value objects and surprisingly more straightforward than the official way, i.e. registering a new Active Model type. Great video, thank you.
Adrián Mugnolo replied

Capistrano deploy fail to do rake db migrate

0
Rails
I follow this tutorial from crabs code and do all as in tutorial but when i do cap production deploy initial capistrano fail to do rake db migrate. I think is because capistrano not do rake db crea...
Reni-amorim posted

ActiveStorage Named Variants, Preprocessed Variants, and Representations for File Uploads in Rails Discussion

0
General
Hey all, we are using named variants with fixtures to both test and load example data in development. We started getting `Foreign key violations found in your fixture data.` errors and found we ne...
TheRealNeil posted

Count the number of pages in a pdf

0
Rails
Hello! I am trying to count the number of pages in a PDF for a print service using PDF-reader (https://github.com/yob/pdf-reader). Here's what I have so far but, I only get a hash of {"identified...
Nick Seferos posted

Normalizes method in ActiveRecord Discussion

3
General
I would like to add that you can add multiple attributes to be normalized ```ruby normalizes [:phone:, :fax, :mobile], with: -> phone_number { phone_number.gsub(/\D/, '') } ```
Tobias L. Maier replied

How to Resolve a SystemStackError in Ruby on Rails Controller?

0
Rails
Trying to create category, Getting SystemStackError (stack level too deep) in rails 6 I'm encountering a SystemStackError in my Ruby on Rails application, specifically in one of my controllers. I'v...

Active Support Deprecation Exceptions Discussion

3
General
Thank you greatly for the useful material you provide. Hope you will always publish as many outstanding pieces as you can going forward for everyone.
Chang Kook replied

Anyone have any brilliant solutions for connecting to Snowflake.

0
Databases
I am currently using ODBC connection with 'ruby-odbc' and 'Sequel' gem but I am finding it incredibly slow. Thirty-Five seconds to load 12 records while it was instantaneous with the now retired M...

Refactoring with ActiveSupport::TimeWithZone Discussion

4
General
Much cleaner to read and I don't think people (like myself) use these helpers enough!
cjilbert504 replied

Remember Me in Devise fails to Login User

2
Gems / Libraries
If I don't use `remember_me` option, it works perfectly fine. The app flows as expected. However, if I check `remember_me`, it will login in as expected, redirect me to a protected page, which wi...
Szedmák István replied