Topic: Ia, getting an error while creating an rails application

Hi

Iam in the process of creating an rails application. while doing so i get an error " error before updating scaffolding from new db schema, try creating a tabke for your model." I have changed the db name in the config/database.yml.  I have created a table for the model. But still I get this error.

Can you please help me in this regard

Thanks
Janakiraman

Re: Ia, getting an error while creating an rails application

Hi

Thanks. i found the solution. The reason I get the error is I should have named the table name in plural form. Then  only rails will know it. else it will think that there is no table. Hence remember to name the table in plural form while creating an rails application

Thanks
Janakiraman

Re: Ia, getting an error while creating an rails application

You should use migrations to setup your tables. This will deal with table naming for you.