The implementation of object-relational mapping (ORM) using the Active Record pattern in the Ruby on Rails framework.
Is there an alternative to update_attributes that does not save the record? So I could do something like: @car = …
ruby-on-rails ruby ruby-on-rails-3 ruby-on-rails-4 rails-activerecordThis is more of a "why do things work this way" question rather than a "I don't know how to …
ruby-on-rails ruby database join rails-activerecordI am new to rails. What I see that there are a lot of ways to find a record: find_…
ruby-on-rails rails-activerecord dynamic-findersJust to update this since it seems a lot of people come to this, if you are using Rails 4 look …
ruby-on-rails rails-activerecordedit 2 If you stumble across this, check both answers as I'd now use pluck for this I have a fairly …
ruby-on-rails ruby-on-rails-3 rails-activerecordHow do you do an OR query in Rails 3 ActiveRecord. All the examples I find just have AND queries. Edit: …
ruby-on-rails ruby-on-rails-3 rails-activerecordSometimes, Activerecord data types confuse me. Err, often. One of my eternal questions is, for a given case, Should I …
ruby-on-rails types floating-point decimal rails-activerecordI'm terrible at naming and realize that there are a better set of names for my models in my Rails …
ruby-on-rails migration rails-activerecordIn my application.rb I came across the following comment # Set Time.zone default to the specified zone and make …
ruby-on-rails ruby timezone rails-activerecordI'm using Rails3, ActiveRecord Just wondering how can I chain the scopes with OR statements rather than AND. e.g. …
ruby-on-rails ruby-on-rails-3 activerecord rails-activerecord