I am just starting on Ruby and I would like to know if there is any
place in the code where I can get a Model attributes list ?
Of course I could look into the migration file or look at the DB tables,
but is there another way ?
Thanks
--
Posted via http://www.ruby-forum.com/.
>
> Hi,
>
> I am just starting on Ruby and I would like to know if there is any
> place in the code where I can get a Model attributes list ?
>
> Of course I could look into the migration file or look at the DB
> tables,
> but is there another way ?
>
Assuming you mean as a programmer (ie not with some code at runtime),
take a look at schema.rb in your app.
Fred