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 in 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. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 table? You want to display the result in a view? Is this correct? On Feb 18, 8:53 am, Enoc Montero <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> 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 > in > 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. > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
correct! 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. " end but still can not get the view mostralo q e created. perhaps a problem in my view. Thanks for the help. Greetings. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> correct! > 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. " > > end > > but still can not get the view mostralo q e created. > > perhaps a problem in my view. > > Thanks for the help. > Greetings. > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---