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 -- Posted via http://www.ruby-forum.com/.
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 browser it shows error that the particular table doesnot exist.... also it changes the name of the table , for eg.table names Recipe gets changed to Recipes and in order to get output 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 -- Posted via http://www.ruby-forum.com/.
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 browser it shows > error that the particular table doesnot exist.... > also it changes the name of the table , for eg.table names Recipe gets > changed to Recipes and in order to get output 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 >Hi Shweta, It is basic Rails convention - if you are very new, you are best advised to do a tutorial and follow the instructions carefully, specially where it comes to naming the tables, classes, etc. :-) Cheers Mohit.
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 White 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-- Posted via http://www.ruby-forum.com/.
Agile Web Development 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. -- Posted via http://www.ruby-forum.com/.
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 Sindhwani 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.-- Posted via http://www.ruby-forum.com/.
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 Development with Rails book and see if that helps... Cheers Mohit.