On Nov 10, 2010, at 2:53 PM, Tuishimi wrote:

> I can't post code but...
> 
> I have a model with a perfectly matched DB table in my app.  I build
> and deploy to JBOSS.  When I run, it looks like ActiveRecord is
> somehow picking up an OLD OLD version of the table/model.  It has
> fields in the query that no longer exist and that throws an error.
> 
> I've run hobo:generate_taglibs (just in case) but it just doesn't seem
> to matter or do anything.
> 
> I can see the SQL that throws the error in the console and it just
> doesn't match the model or the database.
> 
> Can anyone give me a hint as to where I should look for why this is
> happening?  I've literally searched the entire app code, for the old
> field name and it doesn't appear anywhere.

Just to check, have you restarted the server process(es) lately? The only thing 
I can think of that would cause the problems you describe is something stuck in 
a cache somewhere (AR caches table info pretty aggressively in production mode).

--Matt Jones

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to