Forums | Admin

Discussion Forums: drysql_help

Start New Thread Start New Thread

 

By: Bryan Evans
RE: Drysql trying to find tables for Controll [ reply ]  
2007-04-28 18:37
Hi Juan

The const_missing override in DrySQL's dependencies.rb should only try to locate a matching table for the constant if ActiveRecord's const_missing method raises a NameError (i.e. it could not find a declaration for the constant).

Can you please verify your guess that the base_const_missing call is not failing to find the Controller class? Just comment out DrySQL's const_missing method in dependencies.rb, which should mean that ActiveRecord's const_missing method will be used. Do you get a NameError? If not, please attach a stack trace for the scenario in which you see the error that you reported above.

Thanks.

- Bryan

By: Juan Tarquino
Drysql trying to find tables for Controller [ reply ]  
2007-04-25 13:56
In dependencies.rb the code tries to look for tables for classes that are Controllers. My guess is that the base_const_missing call is not failing to find the Controller class. Is there any way I can solve this?

I am using rails 1.2.3.