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

`type_cast' for nil:NilClass (NoMethodError) #6

Open
obrie opened this issue Aug 6, 2011 · 1 comment
Open

`type_cast' for nil:NilClass (NoMethodError) #6

obrie opened this issue Aug 6, 2011 · 1 comment
Assignees

Comments

@obrie
Copy link
Member

obrie commented Aug 6, 2011

Erik Dahlstrand opened this issue

When going from 0.4.1 to 0.4.2 I get

@@@ ruby
.rvm/gems/ree-1.8.7-2010.01/gems/activesupport-2.3.5/lib/active_support/whiny_nil.rb:52:in method_missing’: undefined methodtype_cast’ for nil:NilClass (NoMethodError)
.rvm/gems/ree-1.8.7-2010.01/gems/preferences-0.4.2/lib/preferences.rb:321:in preferences’ .rvm/gems/ree-1.8.7-2010.01/gems/activerecord-2.3.5/lib/active_record/base.rb:2197:ininject’
.rvm/gems/ree-1.8.7-2010.01/gems/preferences-0.4.2/lib/preferences.rb:320:in each’ .rvm/gems/ree-1.8.7-2010.01/gems/preferences-0.4.2/lib/preferences.rb:320:ininject’
.rvm/gems/ree-1.8.7-2010.01/gems/preferences-0.4.2/lib/preferences.rb:320:in `preferences’
@@@

when starting the web server.

original LH ticket

This ticket has 0 attachment(s).

@obrie
Copy link
Member Author

obrie commented Aug 6, 2011

Erik Dahlstrand commented

I finally found the problem. If you remove a preference from the model but don’t remove the corresponding row in the database you get this error.

@ghost ghost assigned obrie Aug 6, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant