Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

Keeping model records and associated directories in sync (with tests)

Getting ActiveRecord::RecordInvalid error with has_many through association; validation issue on join table

How do I elegantly handle two-sided relations with Rails translations?

Attribute saved in development but not in production

Rails date_select helper and validation

Better design pattern for MongoDB document-object-mapper

counter_cache with conditions

How do you stub ActiveRecord::Base methods without making assumptions about how it's used?

Concatenating ActiveRecord::Relations queried through polymorphic association

Rails 3 eager loading of deep nested association

ActiveRecord: Alternative to find_in_batches?

ActiveRecord seems to be validating unchanged child records unnecessarily

How to preview a delete_all or destroy_all query in Rails

connection.select_value only returns strings in postgres with pg gem

ActiveRecord left outer join with and clause

How to set preload scope for Rails Associations::Preloader?

Rails 4.1 - Write to MySQL database without typecasting

How to Get Aggregate Data by Time Slice (sum, avg, min, max, etc.) in Rails 3

Can I execute a raw sql query, leverage prepared statements, and not use ActiveRecord::Relation::QueryAttribute?

How to populate fields in a has_many through join table