Skip to content

Attributes not permitted for models with the same name #51

@peakpg

Description

@peakpg

Imported from lighthouse. Original ticket at: http://browsermedia.lighthouseapp.com/projects/28481/tickets/366. Created by Mezza - 2010-07-16 11:32:36 UTC

I tried to create a content_block for a custom model called 'Year' with an attribute 'year' of type integer.

When using the content_block generator created forms, and actually trying to create a Year record I get an unexpected error:

ActiveRecord::AssociationTypeMismatch: Year(#2195820060) expected, got Fixnum(#2148235880)

Bizarrely, if I drop the attribute from the content_block model and
add one called 'year_value' then all is well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions