ActiveResource
ActiveResource is not a part of Rails at the time of writing, but will probably be released when
you??™re reading this. The purpose is to take the REST architecture of Rails one step further by
providing easy ways to expose web services transparently. This is accomplished by using the
same MVC code that regular Rails uses. Because Service Oriented Architecture (SOA) is hailed
as the future of application development, this could well provide another sweet spot for Rails
applications.
Rails Helper Scripts
Ruby??™s first major philosophy point is DRY: Don??™t Repeat Yourself. This shines through the
Rails framework in many ways. One of the ways Rails makes your life simpler as a developer is
by providing several scripts that help you with different tasks in the development of an application.
I??™ll guide you through the scripts that can be found in the script directory of a newly
generated Rails application. Some of these you won??™t use often; some will be totally indispensable.
I won??™t describe Rake tasks used for different tasks here, though, because they have a
slightly different purpose.
about
If you create a new Rails application, start a WEBrick instance, and point your browser to
http://localhost:3000/, you??™ll see a page describing your application. The about script provides
exactly the same information. It prints the versions of Ruby, RubyGems, and Rails (and
all dependent packages). It also prints which environment is used, the database, and which
migration version number the application is currently at.
Pages:
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92