Search code examples
Should I validate the type column? (Rails, STI)...


ruby-on-railsruby-on-rails-5activemodelsingle-table-inheritancesti

Read More
Register an ActiveModel attribute type with the ability to pass options to it?...


ruby-on-railsactiverecordactivemodel

Read More
Using `assign_attributes` saves `has_many through:` association immediately...


ruby-on-railsactiverecordruby-on-rails-5activemodel

Read More
How to prevent password from being updated if empty in Rails Model and test it with RSpec?...


ruby-on-railsrubytestingrspecactivemodel

Read More
" 'nil' is not an ActiveModel-compatible object. It must implement :to_partial_path &qu...


ruby-on-railsactivemodel

Read More
Postgresql JSONB nested form ruby on rails...


ruby-on-railsactivemodelnested-form-for

Read More
Validate existing records with overlap item ranges taking nil as infinite...


ruby-on-railsrubyrails-activerecordactivemodel

Read More
How to remove errors in after_validation in Rails...


ruby-on-railsrubyactiverecordactivemodel

Read More
FactoryGirl - override association with trait?...


ruby-on-railsfactory-botactivemodel

Read More
Trying to add multiple entry to a particar database active records on rails with a single post reque...


arraysruby-on-railsactiverecordactivemodel

Read More
LoadError Unable to autoload constant Message...


ruby-on-railsactivemodelrails-modelsmailboxer

Read More
using the same validator for different attributes Rails...


ruby-on-railsactiverecordactivemodel

Read More
Checking if attribute_changed? in ActiveModel::EachValidator...


ruby-on-railsvalidationactivemodel

Read More
Mix create and update validations in single custom validator using ActiveModel::Validator...


ruby-on-railsvalidationactivemodel

Read More
How to test a custom validator?...


ruby-on-railstestingrspecvalidationactivemodel

Read More
Copying / Cloning an ActiveStorage attribute...


ruby-on-railsrubyrails-activestorageactivemodel

Read More
Rails 5 throw abort : how do I setup error messages?...


activemodelruby-on-rails-5

Read More
Controlling the order of rails validations...


ruby-on-railsruby-on-rails-3validationactivemodel

Read More
How to implement multiple different serializers for same model using ActiveModel::Serializers?...


ruby-on-rails-3jsonrestactivemodel

Read More
Rails create single record VS create multiple records PERFOMANCE difference...


ruby-on-railspostgresqlperformanceactivemodel

Read More
Mongoid skip validation or set default value for document with nil embeds_many...


rubymongodbmongoidactivemodel

Read More
Why is numericality validator not working with Active Model Attributes?...


ruby-on-railsrubyvalidationactivemodelruby-on-rails-7

Read More
Using form_with with an ActiveModel object?...


ruby-on-railsrubyactiverecordruby-on-rails-6activemodel

Read More
How to handle multiple belongs_to relations to the same model?...


ruby-on-railsrubyactivemodelruby-on-rails-7

Read More
Rails custom model method in where query...


ruby-on-railsactiverecordactivemodel

Read More
ActiveModel - `undefined method `write_from_user' for nil:NilClass`...


ruby-on-railsrubyactivemodel

Read More
In Rails 4, how do I reference an enum value when initializing my model?...


ruby-on-railsruby-on-rails-4enumsactivemodel

Read More
get validations from model...


ruby-on-railsvalidationactivemodel

Read More
Active Record: NameError (undefined local variable or method `attributes' for nil:NilClass Did y...


activemodelruby-on-rails-7

Read More
How to determine if a record is just created or updated in after_save...


ruby-on-railsactiverecordactivemodel

Read More
BackNext