The definitive, Jolt-award winning guide to learning and using Rails is now in its Second Edition. Rails is a new approach to web-based application development that enables developers to create full-featured, sophisticated web-based applications using less code and less effort. Now programmers can get the job done right and still leave work on time.
NEW IN THE SECOND EDITION: The book has been updated to take advantage of all the new Rails 1.2 features. The sample application uses migrations, Ajax, features a REST interface, and illustrates new Rails features. There are new chapters on migrations, active support, active record, and action controller (including the new resources-based routing). The Web 2.0 and Deployment chapters have been completely rewritten to reflect the latest thinking. Now you can learn which environments are best for your style application, and see how Capistrano makes managing your site simple. All the remaining chapters have been extensively updated. Finally, hundreds of comments from readers of the first edition have been incorporated, making this book simply the best available.
Rails is a full-stack, open source web framework that enables you to create full-featured, sophisticated web-based applications with a twist...you can create a full Rails application using less code than the setup XML you'd need just to configure some other frameworks.
With this book, you'll learn how to use Rails Active Record to connect business objects and database tables. No more painful object-relational mapping. Just create your business objects and let Rails do the rest. You'll learn how to use the Action Pack framework to route incoming requests and render pages using easy-to-write templates and components. See how to exploit the Rails service frameworks to send emails, talk to web services, and interact dynamically with JavaScript applications running in the browser (the ''Ajax'' architecture).
You'll see how easy it is to deploy Rails. You'll be writing applications that work with your favorite database (MySQL, Oracle, Postgres, and more) in no time at all.
E-Book Information
-
Series: The facets of Ruby series
-
Year: 2,006
-
Edition: 2nd ed
-
City: Raleigh, N.C
-
Pages: 723
-
Pages In File: 723
-
Language: English
-
Topic: 100
-
Identifier: 9780977616633,0-9776166-3-0
-
Org File Size: 6,229,481
-
Extension: pdf
-
Toc: Contents......Page 5 Preface to the Second Edition......Page 12 Introduction......Page 14 Rails Is Agile......Page 16 Finding Your Way Around......Page 17 Acknowledgments......Page 19 Getting Started......Page 21 Models, Views, and Controllers......Page 22 Active Record: Rails Model Support......Page 25 Action Pack: The View and Controller......Page 29 Your Shopping List......Page 31 Installing on Windows......Page 32 Installing on Mac OS X......Page 34 Installing on Linux......Page 35 Development Environments......Page 36 Rails and Databases......Page 39 Rails and ISPs......Page 42 Creating a New Application......Page 43 Hello, Rails!......Page 45 Linking Pages Together......Page 56 What We Just Did......Page 59