valid,invalid

関心を持てる事柄について

8/4学んだこと / Ruby on Rails@codecademy

Ruby on Rails

codecademyのRail講座始めて65%ぐらいまで進めた。

基本的なコマンドから学んでる。

  • rails new

  • bundle install

  • rails generate model Message

    a model file in app/models/message.rb. The model represents a table in the database.

    a migration file in db/migrate/. Migrations are a way to update the database.

  • rake db:migrate

    The rake db:migrate command updates the database with the new messages data model.

  • rake db:seed

    Finally the rake db:seed command seeds the database with sample data from db/seeds.rb.

Seasar2, Play Framework, Djangoとか、Railsの影響を受けたフレームワークはいくつか経験したことがある。おかげで基本的なアーキテクチャや思想については悩まずに読み進められている。