Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

Rails after_create callback can't access model's attributes

ActiveRecord Migration & Rake tasks not loading models?

Rails ActiveRecord: HABTM find parameters

How to join across polymorphic tables in one query?

How to sort users by the most recent post?

has_secure_password: how to require minimum length

Ignore 'read-only' column in creates and updates in Ruby ActiveRecord

ruby activerecord view db2

Keep a log of user events in rails

Rails 3 find_or_create_by

Rails pass additional parameter to a model

Ruby instance variables versus ActiveRecord attributes

A has_many Bs where B has no primary key

Why does this transaction not work in ActiveRecord?

Rails: is it possible to add extra attribute to a has_and_belongs_to_many association?

Rails 4 Sum by Model Method

Rails log model errors on failed save

How to validate a nested model object based on the state of the parent object?

Rails 3.1: can't write to column in same migration that adds it

How do I set up my fixtures for a has_and_belongs_to_many relation?

Why alias_method fails in Rails model