Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

How do I redirect to 404 page when any records do not exist?

Rails Foreign Key violation deleting has_many relationships with dependent destroy

Finding annual dates with Rails 3.1 ActiveRecord Queries

Rails & Active Record: Create a scope to get the most recent child

Changing like query in a rails_admin association

Rails: ActiveRecord add calculated columns to query result ActiveRecord::Relation / ActiveRecord::Base

Any difference between :model and :model_id in attr_accessible for Rails/ActiveRecord?

ruby on rails 3 reload using cached data

How can I recieve array using Yii ActiveRecord

arrays activerecord yii

rails belongs_to through via association

how to test collections of ActiveRecords in rspec?

How to call ActiveRecord validators as instance methods (ala Sequel)?

Rails where not in array

How to get an array of table names in ruby

Why is synchronous SQL "bad"?

Rake db:setup or rake db:create applying wrong username/wrong database

before_validation, on: :save vs before_save

In Ruby on Rails, how to create a record with ID 3 when it was destroyed earlier?