Apuntes Rails

Apuntes de Ruby on Rails, programación en GNU/Linux y Mac

Scaffold con Rails 2.0

TAGS: None

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


TAGS: None

One Response to “Scaffold con Rails 2.0”


  1. Bosco
    on Feb 1st, 2008
    @ 6:19 pm

    Espectacular tu tutorial, más claro agua. Gracias

Leave a Reply

© 2009 Apuntes Rails. All Rights Reserved.

This blog is powered by Wordpress and the Magatheme Wordpress Theme by Mid MO SEO.