Table name

hello freinds…
I m very new to ruby on rails and i m facing a problem…
whenever i add Scaffold table and try running in that broser it shos
error that the particular tbale doesnot exist…
also it changes the name of the table , for eg.table names Recipe gets
changed to Recipes and in order to get ountput i need to change the name
of the table TO Recipies…is there any reason to this
pls help me out its tough to change the name of table
everytime…
pls help me out…
\waiting

shweta

On Mon, 2006-06-26 at 08:28 +0200, shweta wrote:

hello freinds…
I m very new to ruby on rails and i m facing a problem…
whenever i add Scaffold table and try running in that broser it shos
error that the particular tbale doesnot exist…
also it changes the name of the table , for eg.table names Recipe gets
changed to Recipes and in order to get ountput i need to change the name
of the table TO Recipies…is there any reason to this
pls help me out its tough to change the name of table
everytime…
pls help me out…


You really need to learn through some of the tutorials or Agile Web
Development With Rails (the bible of Ruby on Rails) as this explains
things…

pluralization is handled automatically and if you swim against the tide,
you fight the things that it handles for you.

script/generate model Activity # singular form as a record is singular
script/generate scaffold Activities # plural form for lots of records

Craig

hi dear,
thanks for speedy response …but pls tel me from where do i get the
PDF of this book that is free version of it…
shwets

Craig W. wrote:

On Mon, 2006-06-26 at 08:28 +0200, shweta wrote:

hello freinds…
I m very new to ruby on rails and i m facing a problem…
whenever i add Scaffold table and try running in that broser it shos
error that the particular tbale doesnot exist…
also it changes the name of the table , for eg.table names Recipe gets
changed to Recipes and in order to get ountput i need to change the name
of the table TO Recipies…is there any reason to this
pls help me out its tough to change the name of table
everytime…
pls help me out…


You really need to learn through some of the tutorials or Agile Web
Development With Rails (the bible of Ruby on Rails) as this explains
things…

pluralization is handled automatically and if you swim against the tide,
you fight the things that it handles for you.

script/generate model Activity # singular form as a record is singular
script/generate scaffold Activities # plural form for lots of records

Craig

shweta bairwa wrote:

hi dear,
thanks for speedy response …but pls tel me from where do i get the
PDF of this book that is free version of it…
shwets

On the other hand, you may want to try reading one of the many free
Rails tutorials for an introduction, such as the Four Days with Rails.
Just search Google…

Cheers
Mohit.

hey ihave done that…in that only i have dobts i could able to develop
but have doubts…
shwets

u sound indian where r u from

Mohit S. wrote:

shweta bairwa wrote:

hi dear,
thanks for speedy response …but pls tel me from where do i get the
PDF of this book that is free version of it…
shwets

On the other hand, you may want to try reading one of the many free
Rails tutorials for an introduction, such as the Four Days with Rails.
Just search Google…

Cheers
Mohit.

Agile Web D. with Rails, is available on PDF but not free.
www.pragmaticprogrammer.com

First Edition
http://www.pragmaticprogrammer.com/titles/rails1/index.html

Second Edition (Draft):
http://www.pragmaticprogrammer.com/titles/rails2/index.html
Hint if you buy the PDF you can get the final update when it is
released.

thanks dear i wil arranging that book …where r u from …MOhit ur
name sounds indian???
shwets

shweta bairwa wrote:

hey ihave done that…in that only i have dobts i could able to develop
but have doubts…
shwets

If you have got through the tutorials, you may be able to start
developing… you should have been able to grab the basics from the
tutorials…
But, if you’re still confused, you may need to buy yourself a copy of
the Agile Web D. with Rails book and see if that helps…

Cheers
Mohit.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs