Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

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

ActiveRecord query: where a field is not true

Change or update an attribute value during Rails ActiveRecord validation

Customize Devise user JSON response on creation of a user account

Re sorting active records in rails without re querying the database?

routes.rb - Controller name not supported

Rails/ActiveRecord has_many through: association on unsaved objects

How to call another method from a self method with ruby?

Save changes to a has_many association ONLY when you successfully save the parent object?

ActiveRecord query changing when a dot/period is in condition value

hash instead of id