# Wierd to\_a issue

**URL:** <https://www.ruby-forum.com/t/wierd-to-a-issue/161589>\
**Category:** Rails\
**Created:** [February 27, 2009, 5:24pm UTC](https://www.ruby-forum.com/t/wierd-to-a-issue/161589 "2009-02-27T17:24:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ari](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/5f8ce5/32.png) [@ari](https://www.ruby-forum.com/u/ari)\
**Post date:** [February 27, 2009, 5:24pm UTC](https://www.ruby-forum.com/t/wierd-to-a-issue/161589/1 "2009-02-27T17:24:32Z")

</div>

When I go to save a model, I get tons of these:

/usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active\_record/  
associations/association\_proxy.rb:214: warning: default `to\_a’ will be  
obsolete

It looks like the warning is coming from method\_missing!

Even stranger: the model saves correctly in the development  
environment, but under certain conditions it does not save in the  
production environment – even if operating with an identical  
database.

Any ideas of what could be going on here? I can’t find anything about  
this and am getting frustrated. Any tips on how to trace where the  
warnings are coming from would be helpful.
