Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

Include column for has_many through

Why find_by scope returns an array when the result is nil

Building a simple calculator form in Rails 4

ActiveRecord boolean value returning "f", "t"

postgresql: select records where ALL associated records match condition

Rails Polymorphic Children

How do I explore the results of an ActiveRecord relation?

Rails ActiveRecord Model not updating in RSpec model spec

Translating a (slightly complex) raw SQL query to ActiveRecord/Arel?

Sum associated tables using Active Record

How to get calculated value in hash (attr_accessor) within ActiveRecord query in rails 4?

ActiveRecord erroneously escapes JSON string

How to list out all items in a nested table in Laravel

Rails ActiveRecord "maximum(:column)" ignores order

Why does rails change the type of the attribute _was value after it is set?

Find records which assoicated records do not belong to certain record

Call to undefined method app\models\Message::model()

Rails Active Record: How to reduce number of trips to database?