Forum: Ruby on Rails consult BD oracle

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Enoc M. (Guest)
on 2009-02-18 15:53
hello everyone, the problem is the following application and made his
and it works very well with mSQL, but I need to consult a table that is
oracle, then add to consult the same table in a field
different and Oracle made this just can not show on
my view is the field that I need to say that the data already inside ..
and conultado
ROR several tutorials and books and could not solve ..

thanks in advance.
Jeff E. (Guest)
on 2009-02-18 17:47
(Received via mailing list)
I'm not sure I understand:

You're using MySQL.
You want to read a value from a field in an Oracle database.
You want to put that value into a different field on the same Oracle
You want to display the result in a view?

Is this correct?

On Feb 18, 8:53 am, Enoc M. <removed_email_address@domain.invalid>
Enoc M. (Guest)
on 2009-02-19 16:01
This is the model for q Cree consultation:

class Re_tmtinv <ActiveRecord:: Base

    establish_connection (
        : adapter => "oracle"
        : host => "localhost"
        : username => "root",
        : password => "*****",
        : database => "*****"
# Validations

   validates_uniqueness_of: mtin_mtin,: message => "The code that this
trying to view does not exist in the system. "


but still can not get the view mostralo q e created.

perhaps a problem in my view.

Thanks for the help.
Jeff E. (Guest)
on 2009-02-24 17:37
(Received via mailing list)
Wait, by "view" do you mean an Oracle view (like a table) or a Rails
view (like an erb template)

On Feb 19, 9:01 am, Enoc M. <removed_email_address@domain.invalid>
This topic is locked and can not be replied to.