Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

How does this deprecate method work?

Throw an exception whenever someone tries to mass-assign protected attributes

Multiple database tables within one AR model in Rails 3

using multiple scope params in Rails3

Check to See if A Particular Active Record Object Is In A Particular 'Scope'

What is the "rails way" to access a parent object's attributes?

Belongs_to and has_and_belongs_to_many to the same table in Rails

Rails select() and count() don't seem to play nice

Avoid SHOW FIELDS in ActiveRecord

In Rails, what is the difference using "has_many with belongs_to" vs "has_many with has_one"?

Rails ActiveRecord and array of primitive types

How does ActiveRecord infer mapping from singular (class) and plural (table); and is it possible to override?

Rails gem/plugin for dynamic custom fields in model

Random "SELECT 1" query in all requests on rails

What is the Difference between Active record and ORM in rails?

Ruby on Rails: testing if ActiveRecord results include a value

Return value of another attribute if needed attribute is nil

ActiveRecord has_many :through duplicating counter caches on mass assignment

Rails: Prevent will_paginate from calling #count of ActiveRelation

Reusing named_scope to define another named_scope