In "Agile Development with Rails" I followed the Depot tutorial iteration A1. After completing the Admin scaffold things seem to be mostly functional. For example I can list, show, create, edit and destroy products. Only problem, there is no product form to populate the product fields for the Create or Edit pages. In fact, this form in the generated HTML is rather bare! <form action="/admin/update/1" method="post"> <!--[form:product]--> <!--[eoform:product]--> <input name="commit" type="submit" value="Edit" /> </form> Another more minor issue, all the working pages don''t seem as well formatted as the examples in the book. Using Ruby 1.8.2, and rails 0.13.1 on WindowsXP with MySQL 4.1.12 _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Mark, Did you setup your create your database and populate database.yml before running script/generate? The generate script looks to your database to determine what fields to put in the form. - Trotter
Yes, the database seems to be configured and working. As I mentioned, create/destroy are functioal. I''m actually seeing the records created and destroyed in the database, I''m just not able to populate it with data. On 10/12/05, Trotter Cashion <cashion-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Mark, > Did you setup your create your database and populate database.yml > before running script/generate? The generate script looks to your > database to determine what fields to put in the form. > > - Trotter > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >_______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails