On Tue, Feb 16, 2010 at 4:18 PM, jemminger <jemmin...@gmail.com> wrote:

> I have a rails 2.3.5 app running on ruby 1.8.7 (2008-08-11 patchlevel
> 72) [i686-darwin9] locally, and everything is fine.
>
> I'm trying to deploy it to my server, running centos 5.4, ruby 1.8.7
> (2009-12-24 patchlevel 248) [x86_64-linux], MBARI 0x6770, Ruby
> Enterprise Edition 2010.01.
>
> When I retrieve records via the app, the created_at is nil.  I can
> pull the same records through script/console and created_at is
> properly set as expected.  Through the app though, object.created_at
> is nil, object.attributes['created_at'] is nil, but
> object.created_at_before_type_cast returns the proper string from the
> database.
>
>
Are you started script/console in production mode?  When you look at
the production database does this field have a value set?  Lastly, can
you provide a code fragment?

-Conrad


> Any ideas what's going on?  I'm stumped.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to rubyonrails-t...@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-talk+unsubscr...@googlegroups.com<rubyonrails-talk%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to