I’m having a very strange problem. I’m getting a collection of Rails ActiveRecord models back from the database but the first model in the collection does not have the model attributes/methods, just the standard ActiveRecord base methods. The rest have all the attributes. And it’s only doing this on my production debian server using Passenger. It works find on OS X and cygwin.
Any ideas?
Thanks, Kevin
The problem was that I wan’t using the correct freetds version for SQL Server 2005. I was using an old protocol version that didn’t support column names over 30 characters, which was why it couldn’t find the attribute I was calling. It was being truncated. Changing it in my freetds.conf fixed the problem. Thanks Vlad for all your troubleshooting help.