From: Jesse Hu Date: 2008-02-20T12:40:02+09:00 Subject: Re: Create record into Oracle DB why u use upper case name as the field name? Please use lower case and try again: folder = Folder.new() folder.id= @id folder.client_name = @un folder.tree_name = @tn folder.save() - Cheers, Jesse On Feb 19, 3:08 am, Alexey Nik wrote: > Hello all, there is part of my code : >       folder = Folder1.new() >       folder.ID = @id >       folder.CLIENT_NAME = @un >       folder.TREE_NAME = @tn >       folder.save() > when i test it on mySql all work right, but when i try it with Oracle i > got this error #NoMethodError (undefined method `ID=' for > #). > > I try again with other ruby method > Folder1.create(:ID => @id, :CLIENT_NAME => @un, :TREE_NAME => @tn) > > and again got error : #NoMethodError (undefined method `CLIENT_NAME=' > for #) > > Other actions (e.g. Folder1.find(:all,:conditions => "ID > ='"+Id.to_s+"'")) works good. > > Smb know why Oracle return error #NoMethodError > -- > Posted viahttp://www.ruby-forum.com/.