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.
83304dd3780852305043d5e93ae2d915?d=identicon&s=25 Enoc Montero (enocmontero)
on 2009-02-18 14: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.
D69d23d8e811e8ab2a8593380d6ede63?d=identicon&s=25 Jeff Emminger (jemminger)
on 2009-02-18 16: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 Montero <>
83304dd3780852305043d5e93ae2d915?d=identicon&s=25 Enoc Montero (enocmontero)
on 2009-02-19 15: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.
D69d23d8e811e8ab2a8593380d6ede63?d=identicon&s=25 Jeff Emminger (jemminger)
on 2009-02-24 16: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 Montero <>
This topic is locked and can not be replied to.