Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in rails-activerecord

Rails - view turning complete white after refreshed or visited several times

"first!" on AR CollectionProxy raises "undefined method [] for nil" after updating from Rails 4.1.4 to 4.2.0

Why does rails specify primary key id manually in the insert statement?

Query common Groups between two Users

Convert database constraints to Rails validations

Rails ActiveRecord string field encoding vs Ruby String encoding

Using Rails find_or_create_by with form objects

Foreign key is allowed to be NULL?

Rails select in scope

How to update all the values of an column with regular expression in Rails 4

Rails custom validation error messages on attributes of another model

Get value of atomic counter (increment) with Rails and Postgres

ActiveRecord query on dates in user's time zone

ActionView::Template::Error at / uninitialized constant

How can I access a Postgres column default value using ActiveRecord?

How do I do this? Model.where("created_at >= #{Time.now - 5.days}")

Multiple where conditions in Rails

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

Rails counter_cache not updating correctly

Why alias_method fails in Rails model