Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in rails-activerecord

How to properly escape a regular expression in Active Record where clause

column_types is nil in Rails 4.0.1

Active Record query through relationship to find Record where none of its relationships have true for a value

Rails - Include association in json response

ActiveRecord Query to get a SUM across tables

Accepting nested attributes for parent model

Correct way to set yaml_column_permitted_classes for a custom class

Ruby on Rails: Is there any way to pull items from the database and have them returned in a specified order? [duplicate]

Rails: has_many through between two models and also a has_many/belongs to on the same models

Rails 2.4 => 3.0: ActiveRecord: `add_modifier`: wrong number of arguments (given 3, expected 2) (ArgumentError)

how generate LIKE on arrays of values in where clause of sql query with rails?

Code-First equivalent in Ruby [closed]

Rails console returns nil for column that contains a value

What is the difference with find_by() from the core and the one from the FinderMethods?