Alexey Nayden
Not a member
Alexey Nayden's latest activity
Saturday, January 29 2011
6317
ActiveRecord MySQL zero-filled DATETIME processing
was updated
in Ruby on Rails
-
Alexey Nayden commented at 9:02 PMThe DATETIME type is used when you need values that contain both date and time information. MySQL retrieves and displays DATETIME values in 'YYYY-MM-DD HH:MM:SS...
3744
ActiveSupport::JSON.encode bogus CircularReferenceError
was updated
in Ruby on Rails
-
Alexey Nayden commented at 7:53 PMCurrent rails 3.0.3 code has the following implementation:
if @seen.any? { |object| object.equal?(value) } raise CircularReferenceError, 'object references i...
Sunday, January 23 2011
6273
Cannot create I18n labels when using accepts_nested_attributes_for
was updated
in Ruby on Rails
-
Alexey Nayden commented at 11:54 PM -
- Tag changed from i18n label, 2.3.10, accepts_nested_attributes_for, actionpack, i18n, label to i18n label, 2.3.10, accepts_nested_attributes_for, actionpack, actionview, i18n, label, patch, rails3.0.3
- Assigned user set to Jeremy Kemper
The same problem found in rails 3.0.3
Here're test and patch
Thursday, January 20 2011
Friday, January 14 2011
6273
Cannot create I18n labels when using accepts_nested_attributes_for
was updated
in Ruby on Rails
-
- Tag changed from i18n label, accepts_nested_attributes_for, i18n, label to i18n label, 2.3.10, accepts_nested_attributes_for, actionpack, i18n, label
4203
create and find_or_create_by behaves differently on model with no :id column
was updated
in Ruby on Rails
-
Alexey Nayden commented at 12:11 AMAnd, of course, your example is obviously fixed with "c = Country.new; c.code = 'X2'; c.save"
-
- Tag changed from :id primary_key, 2.3.5, active_record to :id primary_key, 2.3.5, active_record, invalid
@Horace actually AR always marks primary key column as attr_protected, so you're unable to mass-assign it with hash in #create. If you try to activate logging t...
Thursday, January 13 2011
6077
ActiveSupport::JSON.encode fails for Struct types
was updated
in Ruby on Rails
-
Alexey Nayden commented at 11:23 PMSantiago, would you please apply my patch? It seems to be useful bugfix.