• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Instant Rails
 

Instant Rails

on

  • 1,757 views

 

Statistics

Views

Total Views
1,757
Views on SlideShare
1,641
Embed Views
116

Actions

Likes
0
Downloads
13
Comments
0

3 Embeds 116

http://saikyoline.jp 114
http://72.14.253.104 1
http://localhost:3000 1

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Instant Rails Instant Rails Presentation Transcript

    • MIKAMI Yoshiyuki yoshuki@saikyoline.jp http://saikyoline.jp/
    • 127.0.0.1       localhost 127.0.0.1       mybookshelf
    • 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>
    • mybookshelf_development
    • mybookshelfpass
    • ¥ ¥ ¥ ¥ ¥ # 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>