That did the trick. It's far from intuitive though - agree should
probably be considered a bug.

On Fri, Jul 8, 2011 at 6:56 PM, Ken Collins <[email protected]> wrote:
>
> Just do this and it will work.
>
> class Post < ActiveRecord::Base
>  set_primary_key :id
> end
>
> This may seem odd, but what is likely happening is that since the id column 
> is the same name as the expected default and the type is now a string, it is 
> failing to set things correctly or cast them appropriately. Being explicit 
> will fix it, tho this could be considered a regression or bug.
>
>
>  - Ken
>
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Ruby on Rails: Core" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/rubyonrails-core?hl=en.
>
>



-- 
Luis Corrêa d'Almeida
tribe.fm/luis

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en.

Reply via email to