Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

Why doesn't collection=objects on has_many :through trigger callbacks on the join model on deletion of the association?

joins() and where() request on association with custom table name

With paper_trail gem how to skip changes between nil and blank?

Testing an association with an alias_attribute

Trying to order the results of includes in activerecord

Rails cache ActiveRecord result

Using `assign_attributes` saves `has_many through:` association immediately

Adjustments needed in a Rails app to use Datamapper instead of ActiveRecord

How to coerce type of ActiveRecord attribute returned by :select phrase on joined table?

Standard Rails Gem for storing what User created/updated/deleted any Record?

Is it possible to UPDATE a JOINed table using Codeigniter's Active Record?

How to know when the model is destoyed automatically by a :dependent => :destroy in rails?

Rails 4 nested attributes and has_many :through associaton in a form

How to Implement a Friendship Model in Rails 3 for a Social Networking Application?

Model an undirected graph in Rails?

Rails - Dynamically build deeply nested objects (Cocoon / nested_form)

Specify custom index name when using add_reference

What's the best way to include a LIKE clause in a Rails query?

Rails 4 query unique by single attribute

validate at least one in has_and_belongs_to_many