Sorry, I just noticed that you haven't received a response.   Do you
still need help?   Those three commands should work in Hobo, but they
are probably not fully tested.  I would love to have your help setting
up a proper test case for this situation.  Would it be possible to put
up a neutered subset of your data and application on github that we
can both work on?

thanks,
Bryan

On Jan 27, 2:59 am, Gigg <[email protected]> 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
>
> The category is because the system uses the type column so I need to
> use an alternative column since Rails uses type. The set_table_name is
> obviously because I want to link that table to that controller and the
> establish connection links to a specific connection in my config/
> database.yml file for that database. If I add these to the controllers
> it gives me the traditional blank screen when hobo is not happy. Can
> anyone suggest how I can use these or do I need to use rails?
>
> I have checked this group and googled it without much luck. Any help
> would be appreciated.
>
> Thanks in advance.
>
> Gigg

-- 
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