The various
game sequences are filmed in different offices on different days.
Your manager wants you to create an application that tells actors where they need to
appear for the day. The actors will check the schedule for the next day before they leave
the office each day, but if they forget, they can use their cell phone to check the schedule
in the morning. Of course, this means that the reporting application will need to be
accessible via cell phone as well as the Web.
Before you get started, you need to install the Rails gem. You can do so as follows:
gem install rails -y
nNote The first example in this chapter is compatible with Rails versions 1.2 and later. The next example
works with only versions 2.0 and later, so you??™ll need to upgrade your Rails installation with gem update -y
rails if you have an older version.
Next, create a new Rails application called actor_schedule, as follows:
rails actor_schedule
CHAPTER 5 n CONNECTING YOUR REPORTS TO THE WORLD 76
create app/controllers
create app/helpers
create app/models
create app/views/layouts
create config/environments
create components
create db
create doc
create lib
create lib/tasks
create log
create public/images
create public/javascripts
create public/stylesheets
create script/performance
create script/process
create test/fixtures
.
Pages:
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128