On Apr 24, 3:21 pm, fAisAl <[email protected]> wrote: > Hi all, > I am now able to create, update and list object from oracle database > (local XE) without any problems. But the destroy method is not > working. > It is given me this error > undefined method `destroy' for #<Array:0xcbc9b68>
Sounds like you're calling destroy on the wrong thing (probably an array of objects from your db rather than an object itself. Fred > > I am using > ruby 1.8.7 > rails 2.3.11 > activerecord-oracle-adapter > ruby-oci8 1.0.6 > > Is there setting I should put in corresponding model, like constrains > or something. > I also added > set_table_name and set_primary_key to the model, which has number of > has_many relations. > > Any help will be appreciated. > > Cheers, > Fiz -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

