Take the model name and pluralize it.

User model is "users" table
Company model is "companies" table.

These tables should be created using migrations, not manually in the database by yourself.

Have a read of this:

http://guides.rubyonrails.org/migrations.html

On 09/05/13 16:46, ank k. wrote:
Arvind Vyas wrote in post #1108369:
you are going in wrong way dud , you should have the users table

you are creating model name user which is finding the table user and
that
is not their change the table name from user_info to users
you will get your answer :)

hey!! thanks for the reply..
could you please explain me the naming conventions for model and
controller i am a bit confused with it..

Thanks.. :)


--
You received this message because you are subscribed to the Google Groups "Ruby on 
Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to