罪と罰++二律背反

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 (4340d)