... describe Action Controller in the context of Rails. Let’s
start by looking at the overall context of a Rails application.
16. 1 Context and Dependencies
Rails handles many configuration dependencies ... is natural on the web, where static content is stored within folders (directories),
which themselves may be within folders, and so on.
Report erratum
ADVANCED ATTRIBUTES 272
15 .6 Advan...
... Rails applications
must have cookies enabled in their browsers.)
Rather than have developers worry about protocols and cookies, Rails pro-
vides a simple abstraction. Within the controller, Rails ... sys-
tem, but unless you’re using Rails to work with legacy schemas that you
can’t change, we recommend you just stick with using the name
id.
It’s all very well coming up with the...
... erratum
CONTENTS vii
16 Action Controller and Rails 278
16. 1 Context and Dependencies 278
16. 2 The Basics 279
16. 3 Routing Requests 280
16. 4 Action Methods 291
16. 5 Cookies and Sessions 301
16. 6 Flash—Communicating ... quickly.
10. No XML!
1.1 Rails Is Agile
The title of this book is Agile Web Development with Rails. Youmaybe
surprised, then, to discover that we d...
... etter software faster u sing agile practices. With an extensive back-
ground in J2EE and test-driven development, he’s currently putting his experience to
work on Rails projects.
Chapter 12
Task ... ship
things with the same style packaging and then move on to items with
different packaging. So, our application shouldn’t enforce just one way of
working.
After chatting for a while,...
... number_to_percentage (66 .66 666 ) %>
66 .66 7%
<%= number_to_percentage (66 .66 666 , :precision => 1) %>
66 .7%
<%= number_to_phone(2125551212) %>
212-555-1212
Report erratum
LAYOUTS AND COMPONENTS 363
That’s ... RubyGems. Rails
comes packaged with its own copy of Builder, so you won’t have to download anything to get
started.
Report erratum
CACHING,PART TWO 367
Re...
... RFC 261 6 for possible status codes. It’s available online at
http://www.w3.org/Protocols/rfc 261 6/rfc 261 6-sec10.html.
Report erratum
THE RAILS WAY 382
Figure 18.5: Build Real-Time Searches with ... an array, with nice highlighting
of the search term in the result.
File 1 86 WORDLIST = %w (Rails is a full-stack, open-source web framework in Ruby
for writing real-world application...