Learning Rails 3

( 3 )

Overview

If you’re a web developer or designer ready to learn Rails, this unique book is the ideal way to start.

Rather than throw you into the middle of the framework’s Model-View-Controller architecture, Learning Rails 3 works from the outside in. You’ll begin with the foundations of the Web you already know, and learn how to create something visible with Rails’ view layer. Then you’ll tackle the more difficult inner layers: the database models and ...

See more details below
Paperback
$24.03
BN.com price
(Save 31%)$34.99 List Price

Pick Up In Store

Reserve and pick up in 60 minutes at your local store

Other sellers (Paperback)
  • All (17) from $1.99   
  • New (10) from $18.13   
  • Used (7) from $1.99   
Learning Rails 3

Available on NOOK devices and apps  
  • NOOK Devices
  • NOOK HD/HD+ Tablet
  • NOOK
  • NOOK Color
  • NOOK Tablet
  • Tablet/Phone
  • NOOK for Windows 8 Tablet
  • NOOK for iOS
  • NOOK for Android
  • NOOK Kids for iPad
  • PC/Mac
  • NOOK for Windows 8
  • NOOK for PC
  • NOOK for Mac
  • NOOK Study
  • NOOK for Web

Want a NOOK? Explore Now

NOOK Book (eBook)
$15.49
BN.com price
(Save 44%)$27.99 List Price

Overview

If you’re a web developer or designer ready to learn Rails, this unique book is the ideal way to start.

Rather than throw you into the middle of the framework’s Model-View-Controller architecture, Learning Rails 3 works from the outside in. You’ll begin with the foundations of the Web you already know, and learn how to create something visible with Rails’ view layer. Then you’ll tackle the more difficult inner layers: the database models and controller code.

All you need to get started is HTML experience. Each chapter includes exercises and review questions to test your understanding as you go.

  • Present content by building an application with a basic view and a simple controller
  • Build forms and process their results, progressing from simple to more complex
  • Connect forms to models by setting up a database, and 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
  • Send and receive email messages from your applications

"Learning Rails 3 feels like a brisk pair programming session with professionals who know how to use Ruby on Rails to get things done, and get them done well."
-Alan Harris, author of Sinatra: Up and Running

Read More Show Less

Product Details

  • ISBN-13: 9781449309336
  • Publisher: O'Reilly Media, Incorporated
  • Publication date: 7/31/2012
  • Edition number: 1
  • Pages: 416
  • Sales rank: 1,389,682
  • Product dimensions: 6.80 (w) x 9.10 (h) x 0.70 (d)

Meet the Author

Simon St. Laurent is Senior Editor at O'Reilly Media, Inc., focusing primarily on JavaScript and web-related projects. He co-chairs OSCON and the Fluent conference. He's authored or co-authored books including Introducing Erlang, Learning Rails 3, XML Pocket Reference, 3rd, XML: A Primer, and Cookies.

You can find more of his writing on technology, Quakerism, and the Town of Dryden at simonstl.com.

Edd Dumbill is a technologist, writer and programmer based in California. He is the program chair for the O’Reilly Strata and OpenSource Convention Conferences.

Eric J. Gruber makes stuff for the web and is the eGov coordinator for Lawrence, KS.

Read More Show Less

Table of Contents

Preface;
Who This Book Is For;
Who This Book Is Not For;
What You’ll Learn;
Ruby and Rails Style;
Other Options;
Rails Versions;
If You Have Problems Making Examples Work;
If You Like (or Don’t Like) This Book;
Conventions Used in This Book;
Using Code Examples;
Safari® Books Online;
How to Contact Us;
Acknowledgments;
Chapter 1: Starting Up Ruby on Rails;
1.1 If You Run Windows, You’re Lucky;
1.2 Getting Started at the Command Line;
1.3 Starting Up Rails;
1.4 Test Your Knowledge;
Chapter 2: Rails on the Web;
2.1 Creating Your Own View;
2.2 What Are All Those Folders?;
2.3 Adding Some Data;
2.4 How Hello World Works;
2.5 Adding Logic to the View;
2.6 Test Your Knowledge;
Chapter 3: Adding Web Style;
3.1 I Want My CSS!;
3.2 Specifying Stylesheets;
3.3 Creating a Layout for a Controller;
3.4 Choosing a Layout from a Controller;
3.5 Sharing Template Data with the Layout;
3.6 Setting a Default Page;
3.7 Test Your Knowledge;
Chapter 4: Managing Data Flow: Controllers and Models;
4.1 Getting Started, Greeting Guests;
4.2 Application Flow;
4.3 Keeping Track: A Simple Guestbook;
4.4 Finding Data with ActiveRecord;
4.5 Test Your Knowledge;
Chapter 5: Accelerating Development with Scaffolding and REST;
5.1 A First Look at Scaffolding;
5.2 REST and Controller Best Practices;
5.3 Examining a RESTful Controller;
5.4 Escaping the REST Prison;
5.5 Test Your Knowledge;
Chapter 6: Presenting Models with Forms;
6.1 More Than a Name on a Form;
6.2 Generating HTML Forms with Scaffolding;
6.3 Form as a Wrapper;
6.4 Creating Text Fields and Text Areas;
6.5 Labels;
6.6 Creating Checkboxes;
6.7 Creating Radio Buttons;
6.8 Creating Selection Lists;
6.9 Dates and Times;
6.10 Creating Helper Methods;
6.11 Test Your Knowledge;
Chapter 7: Strengthening Models with Validation;
7.1 Without Validation;
7.2 The Original Model;
7.3 The Power of Declarative Validation;
7.4 Managing Secrets;
7.5 A Place on the Calendar;
7.6 Beyond Simple Declarations;
7.7 Test Your Knowledge;
Chapter 8: Improving Forms;
8.1 Adding a Picture by Uploading a File;
8.2 Standardizing Your Look with Form Builders;
8.3 Test Your Knowledge;
Chapter 9: Developing Model Relationships;
9.1 Connecting Awards to Students;
9.2 Connecting Students to Awards;
9.3 Nesting Awards in Students;
9.4 Many-to-Many: Connecting Students to Courses;
9.5 What’s Missing?;
9.6 Test Your Knowledge;
Chapter 10: Managing Databases with Migrations;
10.1 What Migrations Offer You;
10.2 Migration Basics;
10.3 Inside Migrations;
10.4 Test Your Knowledge;
Chapter 11: Debugging;
11.1 Creating Your Own Debugging Messages;
11.2 Raising Exceptions;
11.3 Logging;
11.4 Working with Rails from the Console;
11.5 The Ruby Debugger;
11.6 Test Your Knowledge;
Chapter 12: Testing;
12.1 Test Mode;
12.2 Setting Up a Test Database with Fixtures;
12.3 Unit Testing;
12.4 Functional Testing;
12.5 Integration Testing;
12.6 Beyond the Basics;
12.7 Test Your Knowledge;
Chapter 13: Sessions and Cookies;
13.1 Getting Into and Out of Cookies;
13.2 Storing Data Between Sessions;
13.3 Test Your Knowledge;
Chapter 14: Users and Authentication;
14.1 Installation;
14.2 Storing Identities;
14.3 Storing User Data;
14.4 Wiring OmniAuth into the Application;
14.5 Classifying Users;
14.6 More Options;
14.7 Test Your Knowledge;
Chapter 15: Routing;
15.1 Creating Routes to Interpret URIs;
15.2 Generating URIs from Views and Controllers;
15.3 Infinite Possibilities;
15.4 Test Your Knowledge;
Chapter 16: From CSS to SASS;
16.1 Getting Started;
16.2 Sassy Style;
16.3 Making Everything Work Together;
16.4 Test Your Knowledge;
Chapter 17: Managing Assets and Bundles;
17.1 The Junk Drawer;
17.2 Test Your Knowledge;
Chapter 18: Sending Code to the Browser: JavaScript and CoffeeScript;
18.1 Sending JavaScript to the Browser;
18.2 Simplifying with CoffeeScript;
18.3 Test Your Knowledge;
Chapter 19: Mail in Rails;
19.1 Sending Mail Messages;
19.2 Receiving Mail;
19.3 Test Your Knowledge;
Chapter 20: Pushing Further into Rails;
20.1 Changing to Production Mode;
20.2 Deploying Is Much More Than Programming;
20.3 Joining the Rails Ecosystem;
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;
An Incredibly Brief Introduction to Relational Databases;
Tables of Data;
Databases, Tables, and Rails;
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 Possibilities;
Glossary;
Speaking in Rails;
Colophon;

Read More Show Less

Customer Reviews

Average Rating 3.5
( 3 )
Rating Distribution

5 Star

(1)

4 Star

(1)

3 Star

(0)

2 Star

(1)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously
Sort by: Showing all of 3 Customer Reviews
  • Anonymous

    Posted March 5, 2014

    Aqua

    &hearts!

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted March 3, 2014

    Night To Remember- Part 6 (Amanda)

    ((Holy cow guys! Finally some plot is coming! Ik ik...)) I sighed boredly as we waited for Claire. What was taking so long? For all we know, they could be making out....Suddenly, the door opened and closed and footsteps were heard going upstairs. "Finally, your home." Gabbi said. Claire had the dumb ezpression on her face that looked like she just finished talking to her crush. Wait. No, he couldn't. Could Edd like Claire? Or other way around? Laire rolled her eyes. "Let's go someplace." I complained. Claire giggled. "Ok." "We are not going to the store to get Cola." Gabbi said. That seemed to dampen Claire's spirits. "Fine." Claire went to tell her dad and we were off. In town, Claire was knockd over by a passerby. She had long brown hair, a dark green fancy shirt, tan skinny pants, green sandals, and a smug grin on her face. "Hey, Clumsy Brain, watch where your going alright?" She said like some spoiled rich brat. "Hey, don't talk to her like that!" I spat. A girl with small black eyes, a too big gray button up shirt with a blue collar, extra long pale brown hair, and dark blue jeans stood behind the girl in green. Beside her was another girl with short blonde hair, a lavender sweater, skinny pale blue jeans, and matching lavender shoes. "Maybe you should watch how you talk to Nicole." The blonde said. She reminded me so much of that blonde dude that was a friend of Eduardo. Claire stood up. "Hey, we were watching where we were going."" Then why didya run into me?" I was about to smack that grin off her face. Better yet punch it away. "Madison, Haven, let's go." The leader said before marching off. I had a feeling we were gonna see them again. Really soon. We went on our way and got some froyo. As we walked home, we laughed and talked about our personal lives. I felt like we all knew everything about each other. My best friend was Claire. We had so much in common. Next thing I knew, Claire and I were texting about everything. Then Claire began texted Edd an awful lot. We all took notice right away. What eas going on with these two? As night rolled around, I yawned and changed into my pj's. Soon, I was asleep. ((Wrap it up up up wrap it up up up wrap it up up up im on FIRE!))

    Was this review helpful? Yes  No   Report this review
  • Posted November 13, 2012

    Learning Rails 3 by Simon St. Laurent, Edd Dumbill, and Eric J G

    Learning Rails 3 by Simon St. Laurent, Edd Dumbill, and Eric J Gruber (O’Reilly Media) is a great opening guide for developers that are new to Ruby on Rails development. The book does assume some basic background from the reader (as stated in the preface). The reader should know HTML development (not just HTML via WYSIWYG tools) along with Ruby in order to truly understand the concepts that are being presented in this book. The authors provide an Appendix to help in the Ruby ramp up. Finally, a background in how programming is done generally will help the reader understand the concepts being presented.

    Like all technology books, the authors had to write the title to the version of Rails that was available at the time. However, I feel that the authors have provided a solid foundation to the reader that can support the independent advancement of the reader as they iterate through newer versions of the technology. The authors also provide warnings about potential problems and confusions the readers may experience. Too few authors are willing to commit to these types of warnings and I appreciate those that do provide them. After all, no technology is perfect in all ways.

    While the Model View Controller (MVC) specialist in me kept screaming about some of the early conversations in the book, the authors actually found ways to meet the fundamentals of MVC while making sure that the concepts provided were maintainable and manageable. I don’t fault them for their approach since the flow of the book actually results in the developer meeting those fundamentals as they progress through the book. In fact, it was actually refreshing to see the MVC concepts being explained in a way that would reach all developers – not just the purists.

    Overall, I recommend this book to the type of reader described above. As the authors state in their preface, you will not be a Rails guru after reading it; but you be a lot closer towards it than you were before this book was read.

    Was this review helpful? Yes  No   Report this review
Sort by: Showing all of 3 Customer Reviews

If you find inappropriate content, please report it to Barnes & Noble
Why is this product inappropriate?
Comments (optional)