Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attributes not permitted for models with the same name #50

Open
peakpg opened this issue May 6, 2011 · 0 comments
Open

Attributes not permitted for models with the same name #50

peakpg opened this issue May 6, 2011 · 0 comments
Labels

Comments

@peakpg
Copy link
Collaborator

peakpg commented May 6, 2011

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant