Advanced Rails pdf

359 742 0
Advanced Rails pdf

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

[...]... • Agile Web Development with Rails, Second Edition, by Dave Thomas and David Heinemeier Hansson (Pragmatic Bookshelf): The best and most comprehensive book for learning Ruby on Rails The second edition covers Rails 1.2, but most concepts are applicable to Rails 2.0 • Rails Cookbook, by Rob Orsini (O’Reilly): This contains “cookbook-style” solutions to common problems in Rails, each one of which may... mechanics of metaprogramming in Ruby and the internals of Rails As the book progresses, these concepts assimilate into larger concepts, and the last several chapters cover the “big-picture” concepts of managing large Rails software development projects and integrating Rails into other systems This book is written for Rails 2.0 At the time of this writing, Rails 2.0 has been released as a release candidate,... thousands of developers who use, contribute to, and write about Ruby on Rails, as well as by the Rails Documentation project (http://railsdocumentation.org/) There are hundreds of blogs that offer tutorials and advice for Rails development This book’s goal is to collect and distill the best practices and knowledge embodied by the community of Rails developers and present everything in an easy-to-understand,... development that are often undertreated or dismissed by the Rails community What Is Metaprogramming? Rails brought metaprogramming to the masses Although it was certainly not the first application to use Ruby’s extensive facilities for introspection, it is probably the most popular To understand Rails, we must first examine the parts of Ruby that make Rails possible This chapter lays the foundation for the... (O’Reilly): This contains “cookbook-style” solutions to common problems in Rails, each one of which may be worth the price of the book in time saved Also worth reading are the similar books Rails Recipes by Chad Fowler and Advanced Rails Recipes by Mike Clark and Chad Fowler (Pragmatic Bookshelf) Many varied subjects are covered in this book; I make an effort to introduce subjects that may be unfamiliar (such... W Dijkstra Since its initial release in July 2004, the Ruby on Rails web framework has been steadily growing in popularity Rails has been converting PHP, Java, and NET developers to a simpler way: a model-view-controller (MVC) architecture, sensible defaults (“convention over configuration”), and the powerful Ruby programming language Rails had somewhat of a bad reputation for a lack of documentation... Jeremy Kemper, Rick Olson, Dave Thomas, and why the lucky stiff None of this would have been possible without Ruby or Rails Thanks to Yukihiro Matsumoto (Matz) for creating such a beautiful language, to David Heinemeier Hansson for creating such a fun framework, and to the Ruby and Rails committers and communities for maintaining them Thanks to my parents for their continual support Finally, thanks... your product’s documentation does require permission Preface | xi We appreciate, but do not require, attribution An attribution usually includes the title, author, publisher, and ISBN For example: Advanced Rails, by Brad Ediger Copyright 2008 Brad Ediger, 978-0-596-51032-9.” If you feel your use of code examples falls outside fair use or the permission given above, feel free to contact us at permissions@oreilly.com... (Pragmatic Bookshelf): Known as “the Pickaxe,” this is an excellent introduction to Ruby for programmers, and a comprehensive reference that will serve you for years Without a doubt the most essential book for Rails developers, no matter what skill level • The Ruby Programming Language, by David Flanagan and Yukihiro Matsumoto (O’Reilly): Scheduled to be released in January 2008, this book is a comprehensive... Hill, Jim Kane, John Lein, Tim Morgan, Keith Nazworth, Rob Norwood, Brian Sage, Jeremy Weathers, and Craig Wilson for your input Thanks also to Gary and Jean Atkins, who, although they know nothing about Rails or software development, never failed to ask me about my book’s progress and offer encouragement Others provided inspiration through their books and writings online, as well as discussions on mailing . alt="" Advanced Rails Other resources from O’Reilly Related titles Ajax on Rails Learning Ruby Rails Cookbook ™ RESTful Web Services Ruby on Rails: Up. Try it today for free. Advanced Rails Brad Ediger Beijing • Cambridge • Farnham • Köln • Paris • Sebastopol • Taipei • Tokyo Advanced Rails by Brad Ediger Copyright

Ngày đăng: 06/03/2014, 20:20

Mục lục

  • Advanced Rails

    • Table of Contents

    • Conventions Used in This Book

    • How to Contact Us

    • Foundational Techniques

      • What Is Metaprogramming?

        • Don’t Repeat Yourself

        • Ruby Foundations

          • Classes and Modules

          • Singleton classes of class objects

          • Blocks, Methods, and Procs

            • Blocks to Procs and Procs to blocks

            • Metaprogramming Techniques

              • Delaying Method Lookup Until Runtime

              • Generative Programming: Writing Code On-the-Fly

              • Introspection and ObjectSpace: Examining Data and Methods at Runtime

                • ObjectSpace

                • Delegation with Proxy Classes

                  • DelegateClass and Forwardable

                  • Adding Functionality to Existing Methods

                    • Subclassing

                    • ActiveSupport and RailTies

                      • Ruby You May Have Missed

                        • Array

                        • How to Read Code

                          • How to Locate Code

                          • Reading the Call Stack

                          • Debugging Ruby and Rails

                            • Debugging Rails with ruby-debug

                            • Where to Start

                              • Pick something interesting

                              • Start at the top

                              • Application Initialization in 20 Easy Steps

                              • Rails Plugins

                                • About Plugins

                                  • Plugin Loading

Tài liệu cùng người dùng

Tài liệu liên quan