Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

Cloning a record in rails, is it possible to clone associations and deep copy?

How do I set up a kind of "belongs_to :through" association without a direct belongs_to?

Merge two ActiveRecord arrays and order by created_at

How to translate active record model validations

Creating or updating a has_one ActiveRecord association

How can I have ActiveRecord's pluck also return the column name for rendering in json?

Correct setting of database connection pool database.yml for single-threaded Rails applications

Understanding how establish_connection works in ActiveRecord

Using a scope from a related model in another scope

first_or_create vs find_or_create_by

Relation passed to #or must be structurally compatible. Incompatible values: [:references]

Remove object from has_many but don't delete the original record in Rails?

Codeigniter LIKE with wildcard(%)

Rails Active Record - Get ids array from relation

How to specify multiple values in where with AR query interface in rails3

Is there a way to make Rails ActiveRecord attributes private?

How to use Rails 4 strong parameters with has_many :through association?

How to tell if already within a database transaction in ruby on rails?

Rails Scope returns all instead of nil

How to rescue model transaction and show the user an error?