stephenacross-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2006-Sep-10 18:45 UTC
Depot example error
I am learning Rails using the Agile Web Dev book. I am getting the following error.> ruby script/generate scaffold Product Adminexists app/controllers/ exists app/helpers/ exists app/views/admin exists test/functional/ dependency model exists app/models/ exists test/unit/ exists test/fixtures/ identical app/models/product.rb identical test/unit/product_test.rb identical test/fixtures/products.yml error Before updating scaffolding from new DB schema, try creating a table for your model (Product) Any ideas? Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
You have to create the database & populate it with the table before generating a scaffold. If you already created the database, doublcheck your database.yml file to make sure it''s pointing to the right location. What does your database.yml file have in it? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
2006/9/10, stephenacross-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <stephenacross-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:> > > I am learning Rails using the Agile Web Dev book. I am getting the > following error. > > > ruby script/generate scaffold Product Admin > > exists app/controllers/ > exists app/helpers/ > exists app/views/admin > exists test/functional/ > dependency model > exists app/models/ > exists test/unit/ > exists test/fixtures/ > identical app/models/product.rb > identical test/unit/product_test.rb > identical test/fixtures/products.yml > error Before updating scaffolding from new DB schema, try > creating a table for your model (Product) > > > Any ideas? Thanks. > > > > You MUST create products table in your depot_development database before > using static scaffold command. >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
stephenacross-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2006-Sep-10 23:28 UTC
Re: Depot example error
I have a database and my database.yml is being used. If I change the user/password in the .yml I get an Access denied message when running the same script. Patrick Elder wrote:> You have to create the database & populate it with the table before > generating a scaffold. If you already created the database, doublcheck > your database.yml file to make sure it''s pointing to the right > location. What does your database.yml file have in it?--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
On Sep 10, 2006, at 18:28, stephenacross-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:> > I have a database and my database.yml is being used. If I change the > user/password in the .yml I get an Access denied message when running > the same script.Is the table name plural? Dave --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
stephenacross-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2006-Sep-11 22:15 UTC
Re: Depot example error
Thanks all for your replies. I scrapped the DB and started again - all is working now. I believe I had set something wroing in the user authentication. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---