Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

has_many association with select

ActiveRecord touch(:column) always also updates :updated_at

Active record query with condition on instance, using foreign key

How can I get active record to throw an exception if there are too many records

"NameError: uninitialized constant" on existing ID

Order by associated model with pagination

Counter cache for association of an association

Can I write this in more idiomatic Active Record way?

Overriding to_xml for collection of ActiveRecord objects

Which should I use in my delete action: user.delete or user.destroy?

Kaminari and unscoped

Rails 3 - unserialize returns only ActiveRecord::AttributeMethods::Serialization::Attribute

Get the id of the last updated record

Select records created between a time range regardless the date of creation

TypeError (no implicit conversion of nil into Integer) Active Record

How to count unique records through an association using a scope in Rails 3

Finding multiple records at once in Yii Framework using the infamous CActiveRecord?

php search activerecord date yii

Rails security: Avoiding mass-assignment altogether

ActiveRecord: Retrieve all records where updated_at is 24 hours or more after created_at