Prev | Current Page 124 | Next

David Berube

"Practical Reporting with Ruby and Rails"

First, let??™s create the models.
Creating the Models for the Web Report
The models will represent your tables and the relationships between them. You can
create the models using the following commands:
CHAPTER 5 n CONNECTING YOUR REPORTS TO THE WORLD 82
ruby script/generate model actor
exists app/models/
exists test/unit/
exists test/fixtures/
create app/models/actor.rb
create test/unit/actors_test.rb
create test/fixtures/actor.yml
exists db/migrate
create db/migrate/002_create_actors.rb
ruby script/generate model project
exists app/models/
exists test/unit/
exists test/fixtures/
create app/models/project.rb
create test/unit/project_test.rb
create test/fixtures/project.yml
exists db/migrate
create db/migrate/003_create_projects.rb
ruby script/generate model room
exists app/models/
exists test/unit/
exists test/fixtures/
create app/models/room.rb
create test/unit/room_test.rb
create test/fixtures/room.yml
exists db/migrate
create db/migrate/004_create_rooms.rb
ruby script/generate model booking
exists app/models/
exists test/unit/
exists test/fixtures/
CHAPTER 5 n CONNECTING YOUR REPORTS TO THE WORLD 83
create app/models/booking.


Pages:
112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136
skrzynki do internetu Leona Lewis geovision agencja reklamowa poznań prezenty