Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

how to pluck or select values from a database and return separate arrays for each record in rails

created_at field sometimes becomes nil

Angular.js and DAO pattern

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