Publisher: O'Reilly Media Released: November 2008 Pages: 448
While most books written about Rails cater to programmers looking for information on data structures, Learning Rails targets web developers whose programming experience is tied directly to the Web. Rather than begin with the inner layers of a Rails web application--the models and controllers--this unique book approaches Rails development from the outer layer: the application interface. You'll learn how to create something visible with Rails before reaching the more difficult database models and controller code. With Learning Rails, you can start from the foundations of web design you already know, and then move more deeply into Ruby, objects, and database structures. This book will help you: - Present web content by building an application with a basic view and a simple controller, while learning Ruby along the way
- Build forms and process their results, progressing from the simple to the more complex
- Connect forms to models by setting up a database, and use Rails' ActiveRecord to create code that maps to database structures
- Use Rails scaffolding to build applications from a view-centric perspective
- Add common web application elements such as sessions, cookies, and authentication
- Build applications that combine data from multiple tables
- Create simple but dynamic interfaces with Rails and Ajax
Once you complete Learning Rails, you'll be comfortable working with the Rails web framework, and you'll be well on your way to becoming a Rails guru. |
-
Chapter 1 Starting Up Ruby on Rails -
Getting Started in the Online Cloud: Heroku -
Getting Started with Instant Rails -
Getting Started at the Command Line -
What Server Is That? -
Test Your Knowledge -
Chapter 2 Rails on the Web -
Creating Your Own View -
What Are All Those Folders? -
Adding Some Data -
How Hello World Works -
Protecting Your View from the Controller -
Parentheses Are (Usually) Optional -
Adding Logic to the View -
Test Your Knowledge -
Chapter 3 Adding Web Style -
I Want My CSS! -
Layouts -
Setting a Default Page -
Test Your Knowledge -
Chapter 4 Controlling Data Flow: Controllers and Models -
Getting Started, Greeting Guests -
Application Flow -
Keeping Track: A Simple Guestbook -
Finding Data with ActiveRecord -
Test Your Knowledge -
Chapter 5 Accelerating Development with Scaffolding and REST -
A First Look at Scaffolding -
REST and Controller Best Practices -
Examining a RESTful Controller -
Escaping the REST Prison -
Test Your Knowledge -
Chapter 6 Presenting Models with Forms -
More Than a Name on a Form -
Generating HTML Forms with Scaffolding -
Form As a Wrapper -
Creating Text Fields and Text Areas -
Creating Checkboxes -
Creating Radio Buttons -
Creating Selection Lists -
Dates and Times -
Labels -
Creating Helper Methods -
Putting the Form Body in a Partial -
Test Your Knowledge -
Chapter 7 Strengthening Models with Validation -
Without Validation -
The Original Model -
The Power of Declarative Validation -
Managing Secrets -
A Place on the Calendar -
Beyond Simple Declarations -
Test Your Knowledge -
Chapter 8 Improving Forms -
Adding a Picture by Uploading a File -
Standardizing Your Look with Form Builders -
Test Your Knowledge -
Chapter 9 Developing Model Relationships -
Connecting Awards to Students -
Connecting Students to Awards -
Nesting Awards in Students -
Many-to-Many: Connecting Students to Courses -
What’s Missing? -
Test Your Knowledge -
Chapter 10 Managing Databases with Migrations -
What Migrations Offer You -
Migration Basics -
Inside Migrations -
Test Your Knowledge -
Chapter 11 Debugging -
Creating Your Own Debugging Messages -
Logging -
Working with Rails from the Console -
The Ruby Debugger -
Test Your Knowledge -
Chapter 12 Testing -
Test Mode -
Setting Up a Test Database with Fixtures -
Unit Testing -
Functional Testing -
Integration Testing -
Beyond the Basics -
Test Your Knowledge -
Chapter 13 Sessions and Cookies -
Getting Into and Out of Cookies -
Storing Data Between Sessions -
Test Your Knowledge -
Chapter 14 Users and Authentication -
Installation -
Storing User Data -
Controlling Sessions -
Classifying Users -
More Options -
Test Your Knowledge -
Chapter 15 Routing -
Creating Routes to Interpret URIs -
Generating URIs from Views and Controllers -
Infinite Possibilities -
Test Your Knowledge -
Chapter 16 Creating Dynamic Interfaces with Rails and Ajax -
Ajax Basics -
Supporting Ajax with Rails -
Managing Enrollment through Ajax -
Moving Further into Ajax -
Test Your Knowledge -
Chapter 17 Mail in Rails -
Sending Text Mail -
Sending HTML Mail -
Sending Complex HTML Email -
Receiving Mail -
Test Your Knowledge -
Chapter 18 Securing, Managing, and Deploying Your Rails Projects -
Securing Your Application -
Deploying Rails Applications -
Test Your Knowledge -
Chapter 19 Making the Most of Rails—And Beyond -
Keep Up with Rails -
Plug-ins -
Ruby -
Web Services -
Explore Other Ruby Frameworks -
Migrating Legacy Applications to Rails -
Keep Exploring -
Appendix An Incredibly Brief Introduction to Ruby -
How Ruby Works -
How Rails Works -
Getting Started with Classes and Objects -
Comments -
Variables, Methods, and Attributes -
Logic and Conditionals -
Appendix An Incredibly Brief Introduction to Relational Databases -
Tables of Data -
Databases, Tables, and Rails -
Appendix An Incredibly Brief Guide to Regular Expressions -
What Regular Expressions Do -
Starting Small -
The Simplest Expressions: Literal Strings -
Character Classes -
Escaping -
Modifiers -
Anchors -
Sequences, Repetition, Groups, and Choices -
Greed -
More -
Appendix A Catalog of Helper Methods -
Calling Helper Methods -
ActiveRecordHelper -
AssetTagHelper -
AtomFeedHelper and AtomFeedHelper::AtomFeedBuilder -
BenchmarkHelper, CacheHelper, and CaptureHelper -
DateHelper -
DebugHelper -
FormHelper, FormTagHelper, and FormOptionsHelper -
JavaScriptHelper -
NumberHelper -
PrototypeHelper -
RecordIdentificationHelper -
SanitizeHelper -
ScriptaculousHelper -
TagHelper -
TextHelper -
UrlHelper -
Appendix Glossary -
Speaking in Rails -
Colophon |
- Title:
- Learning Rails
- By:
- Simon St. Laurent, Edd Dumbill
- Publisher:
- O'Reilly Media
- Formats:
-
- Print
- Safari Books Online
- Print:
- November 2008
- Pages:
- 448
- Print ISBN:
- 978-0-596-51877-6
- | ISBN 10:
- 0-596-51877-3
|
-
Simon St. Laurent Simon St. Laurent is a web developer, network administrator, computer book author, and XML troublemaker living in Ithaca, NY. His books include XML: A Primer, XML Elements of Style, Building XML Applications, Cookies, and Sharing Bandwidth. He is a contributing editor to XMLhack.com and an occasional contributor to XML.com. View Simon St. Laurent's full profile page. -
Edd Dumbill Edd Dumbill is co-chair of the O'Reilly Open Source Convention. He is also chair of the XTech web technology conference. Edd conceived and developed Expectnation, a hosted service for organizing and producing conferences. Edd has also been Managing Editor for XML.com, a Debian developer, and GNOME contributor. He writes a blog called Behind the Times. View Edd Dumbill's full profile page. |
Colophon The animals on the cover of Learning Rails are tarpans (Equus ferus ferus). The tarpan was a wild horse that lived in Europe and Asia and died out in the 19th century. Smaller and stockier than a modern domestic horse, it was mouse-gray in color with a dark mane and a black stripe down its back. The breed was known to be intelligent, curious, and independent. The ancient tarpan ranged from southern France and Spain to central Russia. Its decline was caused by the growth of the European human population in the 17th and 18th centuries, which encroached on the tarpan's natural habitat. Tarpans were also hunted for their meat. The last wild tarpan died in the Ukraine in 1879, and the last pure tarpan died in a Russian zoo eight years later, at which point the species officially became extinct. However, you can still see a tarpan today, thanks to two German zoologists who succeeded in genetically recreating the breed in the 1930s. Heinz and Lutz Heck began a breeding program while working at a Munich zoo, believing that genes still present in the gene pool of an overall species could be used to recreate extinct breeds. They combined the genes of living horses who showed similar characteristics to the ancient tarpan, and bred the first modern tarpan at the zoo in 1933. This new form of tarpan, known as the Heck horse, is a phenotypic copy of the original wild breed, meaning that it resembles the ancient tarpan but is not exactly the same genetically. Today, there are about 50 tarpans in North America, all of which trace back to the original project in Munich. Most of them are owned by private breeders who are trying to increase the tarpan population. There are not many more than 100 tarpans in the world. The cover image is from Richard Lydekker's Royal 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. |
|
Description
|
Table of Contents
|
Product Details
|
About the Author
|
Colophon
|
 |
|
 |
|
|
|
Recommended for You
|
Recently Viewed
|
 |
|
By Jonathan Knudsen
May 1998
Ebook: $35.99
Print & Ebook: $49.49
Print: $44.99
By DJ Adams
January 2002
Ebook: $31.99
Print & Ebook: $54.99
Print: $49.99
|
Customer Reviews
6/22/2011 (1 of 1 customers found this review helpful) 5.0Don't judge a book by its cover! By Vivekanandan from Bangalore, India About Me Designer, Developer - Accurate
- Concise
- Easy to understand
- Excellent
- Helpful examples
- Well-written
- Intermediate
- Novice
- Student
|
|
|