He leÃdo aquà un artÃculo muy ilustrativo de la nueva forma de trabajar con scaffold en Rails 2.0. El resumen es el siguiente:
- Installed Rails
#gem install rails –include-dependencies - Created an aplication with the rails command
$rails exchange - Created the databases for the application with the rake command
$ rake db:create:all - Used the script/generate command to create the scaffolding for the application
$ ruby script/generate scaffold Movie title:string description:text one_sheet_url:string - Created the database table using the generated migration file
$ rake db:migrate - Started the webserver with the script/server command
$ ruby script/server - Pointed our web browser to the application and started entering and editing data
http://localhost:3000/movies

Bosco
on Feb 1st, 2008
@ 6:19 pm:
Espectacular tu tutorial, más claro agua. Gracias