際際滷

際際滷Share a Scribd company logo
MIKAMI?Yoshiyuki
yoshuki@saikyoline.jp
http://saikyoline.jp/
Instant Rails
Instant Rails
127.0.0.1???????localhost
127.0.0.1???????mybookshelf
Instant Rails
C:?InstantRails?rails_apps>rails?mybookshelf
      create
      create??app/controllers
      create??app/helpers
      .
      .
      .
      create??log/production.log
      create??log/development.log
      create??log/test.log

C:?InstantRails?rails_apps>
Instant Rails
mybookshelf_development
Instant Rails
mybookshelfpass
Instant Rails
Instant Rails
?           ?          ?             ?      ?
#?And?be?sure?to?use?new\style?password?hashing:
#???http://dev.mysql.com/doc/refman/5.0/en/old\client.html
development:
  adapter:?mysql
  database:?mybookshelf_development
  username:?mybookshelf
  password:?mybookshelfpass
  host:?localhost
  encode:?utf8

#?Warning:?The?database?defined?as?'test'?will?be?erased?and
C:?InstantRails?rails_apps?mybookshelf>ruby?script?generate
   model?Book?isbn:string title:string review:text
      exists??app/models/
      exists??test/unit/
      exists??test/fixtures/
      create??app/models/book.rb
      create??test/unit/book_test.rb
      create??test/fixtures/books.yml
      create??db/migrate
      create??db/migrate/001_create_books.rb

C:?InstantRails?rails_apps?mybookshelf>
C:?InstantRails?rails_apps?mybookshelf>rake?db:migrate
(in?C:/InstantRails/rails_apps/mybookshelf)
==?CreateBooks:?migrating?=================================
\\ create_table(:books)
   \>?0.0400s
==?CreateBooks:?migrated?(0.0400s)?========================


C:?InstantRails?rails_apps?mybookshelf>
C:?InstantRails?rails_apps?mybookshelf>ruby?script?generate
   scaffold?Book
      exists??app/controllers/
      exists??app/helpers/
      create??app/views/books
      .
      .
      .
      create??app/helpers/books_helper.rb
      create??app/views/layouts/books.rhtml
      create??public/stylesheets/scaffold.css

C:?InstantRails?rails_apps?mybookshelf>
Instant Rails
Instant Rails

More Related Content

Instant Rails