List Question
20 TechQA 2024-03-29T02:50:03.770000unable to set pool and timeout settings when using ActiveRecord::Base.establish_connection()
16 views
Asked by Ramiro Rodriguez
In Rails 7, what is the right ActiveRecord callback to use if I need to prevent (or rollback) persistance on error?
35 views
Asked by Mauricio Chavarriaga
Is there a way to create a has_many association that just filters items from another has_many association?
35 views
Asked by acanthite
Rails Active Record Statement Invalid Undefined column
45 views
Asked by user23714798
Rails query working in console but not in the controller
36 views
Asked by Robert Reynolds
RSpec test failing because of file field
38 views
Asked by cnks
ActiveRecord validation error: saying field is blank even though it isn't
57 views
Asked by cnks
Rails eager loading with WHERE clause results in two SQL queries
50 views
Asked by Mircea Cozarev
Decrypting Fields Encrypted by Rails Active Record Encryptor in Plain Ruby
142 views
Asked by Aniruddha Mirajkar
How to destroy a bi-directional has_one association from either end?
147 views
Asked by Andy Stewart
Why is this Rails collection_select not rendering the association attribute?
48 views
Asked by jbk
How can I retry an ActionController action inside a rescue_from for a StaleObjectError
65 views
Asked by Alan Savage
Extract records from PostgreSQL based on time of day component of timestamp/DateTime in Rails Active Record
79 views
Asked by gul Ranaa
Rails Active Record, reciprocal dependency hell
72 views
Asked by fguillen
database_tasks: false not working in rails 7.1
174 views
Asked by Nan Dev
Why is my ActiveRecord (v6) `before_destroy` callback not firing?
71 views
Asked by Eric
Is there a way to create a Ruby model scope for ordering books? (none numeric, none alphabetic)
61 views
Asked by CWarrington
Ruby ActiveRecord how to avoid Database delay/lock when child record callback is updating parent record
53 views
Asked by Shankar
How to iterate over ActiveRecord relation through a has_many association
39 views
Asked by daveasdf_2
Error (Could not find the inverse association for profile_image_attachment (:record in ActiveStorage::Attachment)):
116 views
Asked by Rohit Verma