- Wydawnictwo: O'Reilly Media
- Data wydania: 7 października 2008
- Liczba stron: 224
- Bruce A. Tate
- Lance Carlson
- Curt Hibbs
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. If that sounds too good to be true, it isn't. Find out for yourself with Rails: Up and Running, the concise and popular book that not only explains how Rails works, but guides you through a complete test drive.
Perfect for beginning web developers, this thoroughly revised edition teaches you the basics of installing and using Rails 2.1 and the Ruby scripting language. While Rails is praised for its simplicity, there are still a few tricky steps to master along the way. Rails: Up and Running offers lots of examples and covers just about everything you need to build functional Rails applications right away. Learn how to:
- Create simple database-backed applications, and build dynamic user-centric web pages using Ajax and REST
- Exploit the Rails service frameworks to send emails and implement web services
- Map data to an imperfect table, traverse complex relationships, and build custom finders
- Use techniques to solve common database performance problems
See how fast you can go on Rails, and how reliable it's become with the stability and power of version 2.1. With Rails: Up and Running
, you'll discover why Rails is a remarkable new way to build database-driven web applications.
Bruce A. Tate
Bruce A. Tate is a kayaker, mountain biker, and father of two. In his spare time, he is an independent consultant in Austin, Texas. In 2001, he founded J2Life, LLC, a consulting firm that specializes in Java persistence frameworks and lightweight development methods. His customers have included FedEx, Great West Life, TheServerSide, and BEA. He speaks at conferences and Java user's groups around the nation. Before striking out on his own, Bruce spent 13 years at IBM working on database technologies, object-oriented infrastructure, and Java. He was recruited away from IBM to help start the client services practice in an Austin startup called Pervado Systems. He later served a brief stint as CTO of IronGrid, which built nimble Java performance tools. Bruce is the author of four books, including the bestselling "Bitter Java", and the recently released Better, Faster, Lighter Java, from O'Reilly. First rule of kayak: When in doubt, paddle like Hell.
View Bruce A. Tate's full profile page.
Lance Carlson has been programming Ruby since Rails version 0.13 was released, and he has been riding on its coattails since. He currently owns Ruby Skills, a Ruby consultancy firm and is working for Engine Yard as an application support engineer. Lance has contributed to various Ruby open source projects such as Merb, Rails, DataMapper, and he is also the creator of Ruby Anvil.
View Lance Carlson's full profile page.
Curt Hibbs has always been slightly obsessed with new technologies and tracking technology trends. But he will tell you that this is simply because he is lazy, always looking for new methods and technologies to make his work easier and more productive. This led to his discovery of Ruby in 2001 (when it was still relatively unknown outside of Japan) and to his founding several highly successful Ruby open source projects.
For most of his professional career, which started in the early 1970's, Curt has been a consultant to well-known companies like Hewlett Packard, Intuit, Corel, WordStar, Charles Schwab, Vivendi Universal, and more. He has also been a principal in several startups. Curt now works as a Senior Software Engineer for The Boeing Company in St. Louis.
View Curt Hibbs's full profile page.
Zawartość (spis treści):
Chapter 1 Zero to Sixty: Introducing Rails
- Putting Rails into Action
- 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
- Complex Classes
- Moving Forward
Chapter 4 Active Record Relationships
- What You Haven’t Seen
- Looking Ahead
Chapter 5 Working with Views
- The Big Picture
- Seeing Real Photos
- View Templates
- Setting the Default Root
- 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
- Ruby’s Test::Unit
- Testing in Rails
- Test Coverage
- Mocking with Mocha
- Assertions and Integration Tests
- Wrapping Up
- OS X
- Active Record
- Configuring Your Application