class YourModel < ActiveRecord::Base
set_table_name ''test''
end
Try reading the docs ->
http://api.rubyonrails.org/classes/ActiveRecord/Base.html#M002234
-
MaurĂcio Linhares
http://alinhavado.wordpress.com/ (pt-br) | http://blog.codevader.com/ (en)
On Fri, Apr 3, 2009 at 11:14 AM, Sushrut Sathe
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:>
> Hi,
> I am using oracle,
> & the table name is in singular (for ex. test)type then how i use that
> table in my application without changing the table name.
> i.e. I have to use that table name (test) as it is.
> --
> 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@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---