On Jan 27, 2010, at 2:59 AM, Gigg wrote:
I am learning rails as I go, I am not a traditional programmer but I am improving my skills to get a few things done. I have a solution requirement which I can get to work on rails but I really would like to use Hobo and I cant get it right. I have a server several databases on it. Of the databases I need to access some but not all of the tables. In Rails I am able to use the following commands to access the info as explained but it doesn't work with Hobo. They are placed in the controllers and then allow the access to the relevant database table that I need to access. They are: ActiveRecord::Base.set_inheritance_column :category ActiveRecord::Base.set_table_name "cnms_admin" establish_connection :cnms
I'll have to check the corresponding discussion you've opened on rails- talk, but calling set_table_name on AR::Base is likely to lead to weird stuff happening - that call's supposed to be in a *model*, not in the controller...
--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.
