------art_356_6547681.1203560752023
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

2008/2/20, Alexey Nik <sc_out / tut.by>:
>
> Jesse Hu wrote:
> > why u use upper case name as the field name?
> > Please use lower case and try again:
> >       folder  older.new()
> >       folder.id id
> >       folder.client_name  un
> >       folder.tree_name  tn
> >       folder.save()
> >
> > -
> > Cheers,
> > Jesse
>
> I use upper case, because fields names in db have upper case
> (
> ID  INTEGER,
> CLIENT_NAME     VARCHAR2(35 BYTE)             NOT NULL,
> TREE_NAME       VARCHAR2(35 BYTE)             NOT NULL,
> )
> ---
> I try lower case and got error : undefined method `idfor
> #<FolderTree:0x54060b0>
> ---
>
> Does anybody have solution of this problem ?
> --
> Posted via http://www.ruby-forum.com/.
>
>
It has no relation to the character case of field names in db. You'd better
use lower case string for the function name in Ruby.

How is your db migration file (001_create_fold_trees.rb
) for the FoldTree model like?

-- 
Cheers,
Jesse

------art_356_6547681.1203560752023--