Join Amazon Prime and ship Two-Day for free and Overnight for $3.99. Already a member? Sign in.
Advanced Rails and over 300,000 other books are available for Amazon Kindle – Amazon’s new wireless reading device. Learn more

 

or
Sign in to turn on 1-Click ordering.
 
 
More Buying Choices
52 used & new from $9.99

Have one to sell? Sell yours here
 
   
Advanced Rails
 
 
Start reading Advanced Rails on your Kindle in under a minute.

Don’t have a Kindle? Get yours here.
 
  
4.7 out of 5 stars See all reviews (9 customer reviews)

List Price: $34.99
Price: $23.09 & eligible for FREE Super Saver Shipping on orders over $25. Details
You Save: $11.90 (34%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.

Only 1 left in stock--order soon (more on the way).

Want it delivered Monday, July 20? Choose One-Day Shipping at checkout. Details
38 new from $10.00 14 used from $9.99
Also Available in: List Price: Our Price: Other Offers:
Kindle Edition (Kindle Book) $15.39
Digital (Download: PDF) $27.99 $27.99
Like this book? Find similar titles from O'Reilly and Partners in our O'Reilly Bookstore.

Best Value

Buy Essential ActionScript 3.0 (Essential) and get Advanced Rails at an additional 5% off Amazon.com's everyday low price.

Essential ActionScript 3.0 (Essential) + Advanced Rails
Buy Together Today: $56.58

Show availability and shipping details

  • Essential ActionScript 3.0 (Essential)

    In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details

  • This item: Advanced Rails

    In Stock.
    Ships from and sold by Amazon.com.
    Eligible for FREE Super Saver Shipping on orders over $25. Details


Customers Who Bought This Item Also Bought

The Ruby Programming Language

The Ruby Programming Language

by David Flanagan
5.0 out of 5 stars (25)  $26.39
The Rails Way (Addison-Wesley Professional Ruby Series)

The Rails Way (Addison-Wesley Professional Ruby Series)

by Obie Fernandez
4.2 out of 5 stars (30)  $34.64
Advanced Rails Recipes

Advanced Rails Recipes

by Mike Clark
4.6 out of 5 stars (7)  $25.71
Deploying Rails Applications: A Step-by-Step Guide (Facets of Ruby)

Deploying Rails Applications: A Step-by-Step Guide (Facets of Ruby)

by Ezra Zygmuntowicz
3.7 out of 5 stars (6)  $20.34
Ajax on Rails

Ajax on Rails

by Scott Raymond
4.2 out of 5 stars (16)  $26.39
Explore similar items

Editorial Reviews

Product Description
Ready to go to the next level with Rails? From examining the parts of Ruby that make this framework possible to deploying large Rails applications, Advanced Rails offers you an in-depth look at techniques for dealing with databases, security, performance, web services and much more. Chapters in this book help you understand not only the tricks and techniques used within the Rails framework itself, but also how to make use of ideas borrowed from other programming paradigms. Advanced Rails pays particular attention to building applications that scale -- whether "scale" means handling more users, or working with a bigger and more complex database. You'll find plenty of examples and code samples that explain: Aspects of Ruby that are often confusing or misunderstood Metaprogramming How to develop Rails plug-ins Different database management systems Advanced database features, including triggers, rules, and stored procedures How to connect to multiple databases When to use the Active Support library for generic, reusable functions Security principles for web application design, and security issues endemic to the Web When and when not to optimize performance Why version control and issue tracking systems are essential to any large or long-lived Rails project Advanced Rails also gives you a look at REST for developing web services, ways to incorporate and extend Rails, how to use internationalization, and many other topics. If you're just starting out with rails, or merely experimenting with the framework, this book is not for you. But if you want to improve your skills with Rails through advanced techniques, this book is essential.

About the Author
Brad Ediger is the CTO of Tasman Labs, a real-estate technology company. Together with his wife Kristen, a web designer, Brad owns Madriska Media Group, a firm specializing in custom application development. When not programming, Brad enjoys playing various musical instruments and watching obscure films.

Product Details

  • Paperback: 357 pages
  • Publisher: O'Reilly Media, Inc. (January 11, 2008)
  • Language: English
  • ISBN-10: 0596510322
  • ISBN-13: 978-0596510329
  • Product Dimensions: 9.1 x 7 x 1 inches
  • Shipping Weight: 1.2 pounds (View shipping rates and policies)
  • Average Customer Review: 4.7 out of 5 stars See all reviews (9 customer reviews)
  • Amazon.com Sales Rank: #64,854 in Books (See Bestsellers in Books)

    Popular in this category: (What's this?)

    #83 in  Books > Computers & Internet > Business & Culture > Privacy

Inside This Book (learn more)

What Do Customers Ultimately Buy After Viewing This Item?

Advanced Rails
54% buy the item featured on this page:
Advanced Rails 4.7 out of 5 stars (9)
$23.09
The Ruby Programming Language
19% buy
The Ruby Programming Language 5.0 out of 5 stars (25)
$26.39
Advanced Rails Recipes
10% buy
Advanced Rails Recipes 4.6 out of 5 stars (7)
$25.71
Essential ActionScript 3.0 (Essential)
9% buy
Essential ActionScript 3.0 (Essential) 4.1 out of 5 stars (71)
$34.64

Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
Check the boxes next to the tags you consider relevant or enter your own tags in the field below.
(23)
(15)
(8)
(5)

Your tags: Add your first tag
 
Help others find this product — tag it for Amazon search
No one has tagged this product for Amazon search yet. Why not be the first to suggest a search for which it should appear?

 

Customer Reviews

9 Reviews
5 star:
 (6)
4 star:
 (3)
3 star:    (0)
2 star:    (0)
1 star:    (0)
 
 
 
 
 
Average Customer Review
4.7 out of 5 stars (9 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

 
20 of 20 people found the following review helpful:
5.0 out of 5 stars Lots of rails books now, but this one fills in the gaps, January 12, 2008
I've been developing in ruby for a few years, and rails seriously for less than a year, but reading voraciously, and I own a couple dozen ruby and rails books (including outdated 1st editions). THis one is unique, it's a smallish (325 pages)packed with info that other books deemed too hard to explain or inessential for beginners. Some of the chapters are too much information for me (especially i18n, UTF-8 and localization) but that's because of the nature of my work. The chapters on metaprogramming/ rails coding techniques, database usage, profiling, performance tuning, security and are truly outstanding.

Like i said for Scott Raymond's Ajax on rails, this author is a technical master and an excellent communicator. The explanations are efficient, and move right along. The english is tight and typo-free, illustrations, screen shots and code snippets are all useful. There are techniques discussed here, such as using MQ (or git-add) in conjunction with benchmarking/profiling, that I would say if you don't know them, your rails development team simply will not be competitive, and make no mistake, this has become a very competitive market. I would recommend that every rail dev read this cover to cover.

This is now one of my 4 favorite ruby/rails books (the others: "Rails Way", Black's "Ruby for Rails", and "Ajax on Rails")

What's not in the book: domain modeling, UML, denormalization, those kinds of topics. It's not a data modelling/ activeRecord book. Ajax (pretty well covered in other books), except as it relates to performance and security.

Nitpicks: it's not quite perfect,:

- mercurial coverage: i would prefer git and darcs coverage, or at least a mention. The CVS discussion is superfluous, also.

- weak index: on a few occasions, space is devoted to configuring apache (p. 106, 136). Do they show up in the index under Apache? Also nginx only rates a mention as the leading reverse proxy. There's an index entry for "code"(?!). Not indexed: facets, evil (p 45), money gem (p. 224), ... This is an extremely important (time-saving) thing, I would be willing to pay 3x the price for a well-indexed book.

- search engines (p 169) I wouldn't concede ferret is industry leader, he should have mentioned the SOLR and sphinx plugins
- the bit about PHP security, p 131 seems irrelevant.
- some other points could have been footnoted: class variables and inheritance in 1.9 is still being debated by the ruby core team (p 20) and plugin load order is also under debate (p 75).
Comment Comments (3) | Permalink | Was this review helpful to you? Yes No (Report this)



 
16 of 17 people found the following review helpful:
4.0 out of 5 stars Limited depth but Lots of Topics and Good Information, February 27, 2008
By Ben M (Portland, OR) - See all my reviews
As Ruby on Rails rocketed into the development community's hearts and minds a few years ago, the number of books on the subject climbed with it. However, a lot of these books were introductory in nature (Agile Web Development with Rails, Beginning Rails, Build Your Own Rails Applications, etc.). What's a budding Rails-head to do once they've gotten the basics down? Books like Advanced Rails -- which was released late last year by O'Reilly - aim to fill this void.

Author Brad Ediger has been kicking around the Rails scene since the pre-1.0 days. Though not a Rails "luminary" necessarily, he certainly qualifies as an advanced user. He is CTO for a Real Estate tech company called Tasman Labs and runs a web design (and Rails consulting) firm called Madriska Media Group. He seems like a sharp cookie and a decent writer.

Advanced Rails covers quite a bit of territory, going for breadth rather than depth most of the time. Each chapter covers a classic, pivotal development concern... well, at least most of them do. The chapters are as follows:

1. Foundational Techniques
2. ActiveSupport and RailTies
3. Rails Plugins
4. Database
5. Security
6. Performance
7. REST, Resources, and Web Services
8. i18n and L10n
9. Incorporating and Extending Rails
10. Large Projects

By "Foundational Techniques", Ediger is referring to Ruby and Rails techniques, principals and patterns like Metaprogramming, Don't Repeat Yourself, and Functional Programming techniques. The chapter also goes into a fair amount detail about the Object/Class/Module relationship. A bunch of this may not be particularly new material for most Rails users who've been at it for at least a few months. However, it's still nice to have all this stuff in one forty page chapter... good to have handy to refer to. Also, there are some nice nuggets in there that could save you some head-scratching. For example, what's the difference between Kernel#lambda and Proc.new? The answer is that, if you *return* a value from the block passed to Proc.new, the calling method is exited as well, abandoning any code that you might have after it.

If the first chapter feels like it's leaning towards a reference work, the second chapter -- which digs into all the goodies offered by ActiveSupport and RailTies -- pretty much falls over right into reference-land, complete with a method-by-method listing of features added to standard library classes. This may seem even more like just putting api docs available online into print, but Eidger defintely adds a bit more explanation. And, I haven't really seen anyone give a rundown of just what the heck RailTies does. That's the library that provides the glue to pull together the more famous Rails libraries to make it all work together as rails: generators, initializers, etc. There is definitely some interesting and not necessarily readily available information here.

Chapter three covers Rails Plugins, and is quick and painless. It explains the common files and directory structure in a plugin and talks about how Rails loads them. It also talks about using Piston instead of svn:externals to manage plugins and show some example plugins.

The following three chapters cover more of the classic eternal problems faced in running high-traffic sites: databases, security, and performance. These really make the most sense in an "advanced" book; they are the "brass tacks" that everyone must get down too if they go beyond the "toy app" stage. Ediger talks about the strengths and weaknesses of the various popular database systems. He also goes into the benefits of using the filesystem to store data, which is largely because web servers can make use of fast system calls to dump files straight into the TCP socket. He also covers some advanced db features like composite keys, stored procedures and clustering.

The security chapter isn't all that long and a lot of the info it covers can be found in beginner Rails books... SQL injection, cross-site scripting etc. However, the book would be remiss to not include this material and it is presented in a concise and complete manner. This would be good to refer back to now and then to make sure you haven't slipped in your security awareness. Ediger also doesn't hesitate to make specific recommendations, like "whitelist rather than blacklist".

He also jumps right into recommendations while writing about performance optimization in the next chapter: "Algorithmic improvements always beat code tweaks", "As a general rule, maintainability beats performance", "Only optimize what matters", "Measure twice, cut once". He then goes on to cover specific tools and techniques for uncovering your bottlenecks, from a quick explanation of basic statistics to using httpperf, benchmark, and Rails Analyzer Tools, improving database calls (using indexes and "include" on finders), and the various caching solutions. There is plenty of good information in this chapter; also a good bit of reference next time you need to track down a logjam.

Chapter seven covers RESTful Rails, from the very basic theory as outlined by Roy Fielding to exactly how Rails has chosen to use these concepts, and is the longest chapter in the book. The amount of coverage REST gets seems questionable since Rails has been very heavily into the RESTful approach for over a year and embraced the philosophy so thoroughly that it's hard to imagine anyone using Rails today without being exposed to the concepts.

On the other hand, one can still wire up verb-oriented actions in routes.rb and might be able to get away with ignoring all the RESTful goodness. So maybe there are some out there that can benefit from this chapter. Plus, having such thorough, theory-to-practice coverage allows the chapter to stand on its own as a solid reference to the whys and hows of RESTful Rails. It also has one of the better sections on RESTful routing that I have seen (routes being one of the more mysterious and sometimes frustrating pieces of Rails).

Rails has gotten plenty of grief for its lack of official support for Internationalization and Localization, but in Chapter eight, Ediger lays out the options, such as gettext, Gibberish, and Globalize. He is most enthusiastic about this last library and it does appear to be quite powerful, including support for translating strings, translating model fields, localizing numbers and dates, and even recording what needs to be translated by saving them in the database. Creating multi-lingual websites is a hard problem in any web-development framework and most other frameworks have plenty of head start. However, Ruby and Rails certainly isn't without options and it will only get better.

The next to last chapter of Advanced Rails runs through a number of alternatives to the standard components of the Rails framework. On the database end, it covers DataMapper, Ambition, and Og, giving this last one the most attention. For alternatives to ERB templates, Ediger talks about Markaby, Liquid and Haml, all in a very brisk fashion. He also talks about using traditional Rails components -- like ActiveRecord and ActionMailer -- outside of Rails applications. The chapter closes with a discussion of how to contribute to Rails (hint: submit a patch... don't just bitch!).

The last chapter is called "Large Projects" and covers some useful information about working on a Rails project with a team, beginning with version control (though anyone who is writing code that covers more than a single file and *not* using version control is just plain insane). This starts with a quick overview of Subversion, however this feels like it is really a set up for making a case for "decentralized version control". Ediger does a good job of explaining these concepts, using Mercurial for his examples. This seems a bit unfortunate, since many people on the Rails core team have embraced Git and it is looking like Rails will eventually move its repository to Git. However, Mercurial has a reputation of being more user-friendly, so that may have influenced his decision. And it's useful information regardless.

Chapter ten continues on to discuss avoiding migration numbering collisions, issue tracking, keeping Rails and required gems within a project, web servers, load balancers, production architecture and deployment tools like Capistrano. This is all covered in a fairly quick fashion so don't expect a lot of depth.

That last sentiment came up often while reading this book. It often felt like Ediger was trying to get every possible Rails-related topic into the book that he could, but didn't want to come out with some 1000-page behemoth. Plenty of the topics mentioned don't have much more coverage than you could get with a quick "googling". However, there is something to be said for being exposed to a lot of tools, projects and concepts in one go, even if the exposure is sometimes superficial. I definitely found reading this book worthwhile and will keep it around to refer back to now and then. I don't know if I'd go so far as to label it required reading, but then again books on web frameworks rarely are.
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
2 of 2 people found the following review helpful:
5.0 out of 5 stars An essential Rails resource, July 7, 2008
By Jeremy Seitz "somebox" (New York, NY United States) - See all my reviews
(REAL NAME)   
Although the title suggest otherwise, Advanced Rails is really required reading for anyone using Rails - beginners and gurus alike. The information provided is excellent, with essential tips and sound advice. In particular, the chapters on routing, security, internationalization and database issues are well worth the purchase price. Like Obie's The Rails Way (Addison-Wesley Professional Ruby Series), this book should live on your desk in your workspace. What's missing? Well, it would have been nice to see information on Git considering the effort put into covering source control systems. It's also surprising that there is not more on testing techniques and issues. But overall, this book is fantastic, and chocked full of juicy info you won't find in any of the other Rails books currently available.
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)


Share your thoughts with other customers: Create your own review
 
 
Ad
 
Most Recent Customer Reviews

4.0 out of 5 stars Wide Range of Topics
I loved that, for once, a Rails book did not start out telling me how to install Rails. Ok, maybe they don't all do that, it just feels that way sometimes. Read more
Published 10 months ago by J. Pease

5.0 out of 5 stars A must-read for any experienced Rails developer
This book is almost worth it just for the first chapter's dive into Ruby metaprogramming, but the rest of the book doesn't disappoint. Read more
Published 14 months ago by Brad Fults

4.0 out of 5 stars Good Rails Companion Book
With 'Advanced Rails' the O'Reilly family of Rails books is looking to add a Rails book that talks about some of the extra stuff you can do with this great technology. Read more
Published 15 months ago by Daniel McKinnon

5.0 out of 5 stars A Great Intermediate/Advanced Rails Guide - A must addition to any RoR bookshelf
For a programmer who doesn't work in an office full of rails gurus this book answers a ton of questions I would like to ask, but have no one I could ask. Read more
Published 17 months ago by Charles Harvey

5.0 out of 5 stars Yet Another Rails Book You Should Buy
I finished this awhile ago and while I was reading it I said to myself that I should jot down some of the good things about this book. Read more
Published 18 months ago by Larry

5.0 out of 5 stars rails books for the next level
I collect every ruby / rails book. So I purchased this book without checking the content. I read the first chapter during the weekend and found this books is really helpful. Read more
Published 18 months ago by Michael

Only search this product's reviews



Customer Discussions

 Beta (What's this?)
New! See all customer communities, and bookmark your communities to keep track of them.
This product's forum (1 discussion)
  Discussion Replies Latest Post
How popular is Ruby on Rails ? 3 September 2008
See all discussions...  
Start a new discussion
Topic:
First post:
Prompts for sign-in
  [Cancel]


Active discussions in related forums
   


Product Information from the Amapedia Community

Beta (What's this?)



Look for Similar Items by Category


Get Creative with Dremel Power Tools

Dremel power tools
Take on your next project with a versatile Dremel power tool. Shop now and save on Dremel power tools and take advantage of FREE Super Saver Shipping to save even more.

Shop Dremel tools

 

Best Books of 2008

Best of 2008
Find our top 100 editors' picks as well as customers' favorites in dozens of categories in our Best Books of 2008 Store.
 

Summer Reading for Kids & Teens

Summer Reading for Kids and Teens
Discover everything from beach reads and board books to teen romance and action-adventure series in Summer Reading for Kids & Teens. And, check off the kids' required reading lists in our Summer School Reading Store.
 

Ridgid Professional Tools

Shop for Ridgid tools
Known as industry-leading products that allow professionals to operate in extreme conditions, Ridgid tools perform reliably day in and day out.

Shop for Ridgid tools

 
Ad

 

Feedback

If you need help or have a question for Customer Service, contact us.
 Would you like to update product info or give feedback on images?
Is there any other feedback you would like to provide?

Your comments can help make our site better for everyone.


Where's My Stuff?

Shipping & Returns

Need Help?

Your Recent History

  (What's this?)
You have no recently viewed items or searches.

After viewing product detail pages or search results, look here to find an easy way to navigate back to pages you are interested in.

Look to the right column to find helpful suggestions for your shopping session.

Continue shopping: Top Sellers
Free
Free by Chris Anderson
Paranoia
Paranoia by Joseph Finder
My Soul to Lose
My Soul to Lose by Rachel Vincent
Glenn Beck's Common Sense

Conditions of Use | Privacy Notice © 1996-2009, Amazon.com, Inc. or its affiliates