ºá¤Èȳ++ÆóΧÇØÈ¿

gem install rails --include-dependencies
  • cd work
    rails demo
    cd demo
    ruby script/server
ruby script/generate controller Test
  • class TestController < applcationController
      def hello
      end
    end
  • <html>
      <head>
      <title>hello</title>
      </head>
      <body>
        <h1>hello,world!</h1>
      </body>
    </html>
http://localhost:3000/test/hello
  • create database test;
    create table custs (
      id int unsigned not null auto_increment primary key
      , name char(255) not null
      , tel1 char(20)
    );
  • ruby script/generate scaffold cust Admin
http://localhost:3000/admin

¥È¥Ã¥×   ÊÔ½¸ Åà·ë º¹Ê¬ ¥Ð¥Ã¥¯¥¢¥Ã¥× źÉÕ Ê£À½ ̾Á°Êѹ¹ ¥ê¥í¡¼¥É   ¿·µ¬ °ìÍ÷ ñ¸ì¸¡º÷ ºÇ½ª¹¹¿·   ¥Ø¥ë¥×   ºÇ½ª¹¹¿·¤ÎRSS
Last-modified: 2012-06-08 (¶â) 00:24:37 (3058d)