Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

Rails, has_many :through, undefined method `to_sym` for nil:NilClass

Force Rails 3 dynamic finder to throw RecordNotFound exception?

In rubyonrails, how to get the associated model class from and ActiveRecord::Relation object?

Rspec / Rails matcher that excepts a model to_be_saved

How to Skip Validations w/ find_or_create_by_?

How to show sql result on server console

Codeigniter: Column 'id' in order clause is ambiguous

Virtual attributes and mass-assignment

Rails / ActiveRecord - AdapterNotSpecified, even though it is

How to write a where.not query with multiple conditions in rails 4

Is it necessary to unit test ActiveRecord validations?

Rails: Query all but first record?

How do I select all records with more than n child records

Rails Article.find 1 raises ActiveRecord::StatementInvalid on legacy database

Enabling local-infile for loading data into remote mysql from rails

block in assert_valid_keys': Unknown key: :order (ArgumentError)

How do I tell ActiveRecord not to log any control chars

How can I have two columns in one table point to the same column in another with ActiveRecord?

Rails - group_by

validate and update single attribute rails