In just a matter of days, you can develop powerful web applications with Rails that once took weeks or months to produce with other web frameworks. Find out how with Rails: Up and Running. Perfect for beginning web developers, this new edition teaches the basics of installing and using Rails 2.1 and the Ruby scripting language, and covers just about everything you need to develop your own Rails applications quickly.
-
Chapter 1 Zero to Sixty: Introducing Rails
-
Putting Rails into Action
-
Organization
-
The Web Server
-
Creating a Controller
-
Building a View
-
Tying Controller Data to the View
-
Under the Hood
-
What’s Next?
-
-
Chapter 2 Scaffolding, REST, and Routes
-
Introducing Photo Share
-
Preparing Your Project and Database
-
Generating a Resource Scaffold
-
RESTful Routes
-
Wrapping Up the Scaffolding
-
What’s Next?
-
-
Chapter 3 Active Record Basics
-
Active Record Basics
-
Generating Models
-
Basic Active Record Classes
-
Attributes
-
Complex Classes
-
Behavior
-
Moving Forward
-
-
Chapter 4 Active Record Relationships
-
belongs_to
-
has_many
-
has_one
-
has_and_belongs_to_many
-
acts_as_list
-
Trees
-
What You Haven’t Seen
-
Looking Ahead
-
-
Chapter 5 Working with Views
-
The Big Picture
-
Seeing Real Photos
-
View Templates
-
Setting the Default Root
-
Stylesheets
-
Hierarchical Categories
-
Styling the Slideshows
-
-
Chapter 6 Ajax
-
How Rails Implements Ajax
-
Playing a Slideshow
-
Using Drag-and-Drop to Reorder Slides
-
Drag-and-Drop Everything (Almost Everything)
-
Filtering by Category
-
-
Chapter 7 Testing
-
Background
-
Ruby’s Test::Unit
-
Testing in Rails
-
Test Coverage
-
Mocking with Mocha
-
Assertions and Integration Tests
-
Wrapping Up
-
-
Appendix Installing Rails
-
Windows
-
OS X
-
Linux
-
-
Appendix Quick Reference
-
General
-
Testing
-
RJS (Ruby JavaScript)
-
Active Record
-
Controllers
-
Views
-
Ajax
-
Configuring Your Application
-
-
Colophon
- Title:
- Rails: Up and Running, Second Edition
- By:
- Bruce A. Tate, Lance Carlson, Curt Hibbs, Curt Hibbs
- Publisher:
- O'Reilly Media
- Formats:
-
- Ebook
- Safari Books Online
- Print Release:
- October 2008
- Ebook Release:
- October 2008
- Pages:
- 224
- Print ISBN:
- 978-0-596-52200-1
- | ISBN 10:
- 0-596-52200-2
- Ebook ISBN:
- 978-0-596-15658-9
- | ISBN 10:
- 0-596-15658-8
The animal on the cover of Rails: Up and Running, Second Edition, is an ibex (Capra pyrenaica). Found in the mountains of Europe, central Asia, and North Africa, the ibex spends most of its time at an altitude of 7,500 to 11,500 feet. The ibex is known for its impressively long horns, which can grow up to three feet on males. During mating season, ibex males bang their horns together in intense battles over mating rights.
Although the physics of such a feat seems dubious, according to legend, the ibex's horns were so strong that, if threatened, the animal could hurl itself from a precipice and land unharmed on them.
The cover image is from Riverside Natural History. The cover font is Adobe ITC Garamond. The text font is Linotype Birka; the heading font is Adobe Myriad Condensed; and the code font is LucasFont's TheSansMonoCondensed.




