Ruby on Rails 2.0ã«ãªã£ã¦ä½ãå¤ãã£ãã®ã俯ç°ãã¦ã¿ãã«ã¯ãã¨ããããscaffoldãä½ã£ã¦ã³ã¼ããè¦ã¦ã¿ãã®ããããããã¨æã£ãã®ã§ä½ã£ã¦ã¿ãã ãããã¡ã§æ縮ã ããPersonã¢ãã«ã®scaffoldãä½ããè¦ç´ ã¯ååï¼nameï¼ã¨å¹´é½¢ï¼ageï¼ã®äºã¤ã ããã·ã³ãã«ã ã¾ããã¢ããªã±ã¼ã·ã§ã³ã®åæåãè¡ããDBã¯ãæ軽ã«æ±ãããã®ã§sqlite3ã使ããã¨ã«ãããããã ã¨config/database.ymlã®ç·¨éãä¸è¦ãªã®ã§æ¥½ã $ rails trial -d sqlite3 ï¼ç¥ï¼ $ cd trial ã§ãRails 1.2ã§ããã°ãã¾ãã¯migrationãã¡ã¤ã«ãä½ã£ã¦DBã«migrateãããã®å¾ã§ããããã«scaffoldçæãè¡ãã¨ããã§ãããããããRails 2.0ã§ã¯ããã§ãããªãscaffoldã®çæãå§ããã $ ruby script/g
{{#tags}}- {{label}}
{{/tags}}