did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

We're the #1 textbook rental company. Let us show you why.

9781934356876

The Rails View: Creating a Beautiful and Maintainable User Experience

by ;
  • ISBN13:

    9781934356876

  • ISBN10:

    1934356875

  • Format: Paperback
  • Copyright: 2012-04-06
  • Publisher: Oreilly & Associates Inc
  • Purchase Benefits
  • Free Shipping Icon Free Shipping On Orders Over $35!
    Your order must be $35 or more to qualify for free economy shipping. Bulk sales, PO's, Marketplace items, eBooks and apparel do not qualify for this offer.
  • eCampus.com Logo Get Rewarded for Ordering Your Textbooks! Enroll Now
List Price: $35.00

Summary

Working in the View layer requires a breadth of knowledge and attention to detail unlike anywhere else in Rails. One wrong move can result in brittle, complex views that stop future development in its tracks. This book will help you break free from tangles of logic and markup in your views as you pick up the practical skills you need to implement your user interface cleanly and maintainably.You'll discover how to build up solid, sustainable layouts and popular interface elements with semantic HTML5 and CSS3, and when you can responsibly generate markup and use advanced presenters... all without leaving the designers on your team out in the cold. Widen your appeal with responsive design, and discover how new progressive enhancement techniques can take you beyond the "weakest link" approach of the past. Master the asset pipeline introduced in Rails 3.1 and use Sass and Coffeescript to make your interface code shorter and more enjoyable.You'll create elegant, well-structured views that are a joy to build on. You'll appreciate its comprehensive, objective guidance in a realm full of subjective opinions.What You Need:All examples in the book assume Rails 3.1 and Ruby 1.9.x are installed. Detailed information on how to install these for Windows, Mac OS X and Linux is included in the book.

Author Biography

JohnAthayde is a UI/UX Design type who comes from an architecture (of the building variety) background. He is a senior designer at LivtngSocial. Bruce Williams is a longtime speaker, trainer, designer, and book contributor in the Ruby and Rails community. He is a senior developer in RJD at LivtngSocial.

Table of Contents

Acknowledgmentsp. ix
Prefacep. xi
Creating an Application Layoutp. 1
Creating a Basic Layoutp. 2
Setting Up a Boilerplatep. 6
Building the Page Framep. 14
Adding a Sidebarp. 23
Adding Navigationp. 28
Displaying Notificationsp. 36
Validating Our Codep. 39
Testing Internet Explorerp. 41
Wrapping Upp. 47
Improving Readabilityp. 49
Choosing a Templating Languagep. 49
Standardizing Coding Practicesp. 51
Simplifying Complex Outputp. 56
Working with Modelsp. 63
Displaying Conditional Contentp. 65
Adding Model DOM IDs for JavaScriptp. 69
Cleaning Upp. 71
Wrapping Upp. 72
Adding Cascading Style Sheetsp. 73
Using the Asset Pipelinep. 73
Learning SCSSp. 76
Adding Spritesp. 88
Using Web Fontsp. 92
Wrapping Upp. 98
Adding JavaScriptp. 101
Using JavaScript from Railsp. 101
Testing Ajaxp. 110
Wrapping Upp. 117
Building Maintainable Formsp. 119
Using Semantic Form Tagsp. 119
Building Custom Form Buildersp. 132
Looking Toward the Future of HTML5 Form Elementsp. 140
Wrapping Upp. 142
Using Presentersp. 143
Presenting a Recordp. 144
Presenting Multiple Recordsp. 153
Using Presenters for Serializationp. 158
Wrapping Upp. 161
Handling Mobile Viewsp. 163
Building a Flexible Layoutp. 164
The Next Level with Responsive Design (©media queries)p. 168
Using Mobile-Specific Templatesp. 174
Using jQuery Mobilep. 179
Wrapping Upp. 188
Working with Emailp. 189
Building a Mailerp. 189
Handling Email Templatesp. 191
Testing Locallyp. 195
Testing Across Clientsp. 196
Wrapping Upp. 206
Optimizing Performancep. 207
A/B Testing with Vanityp. 207
Performance Testing and Maintenancep. 214
Wrapping Upp. 228
Where Do We Go from Here?p. 229
The Rails View Rulesp. 233
Bibliographyp. 235
Indexp. 237
Table of Contents provided by Ingram. All Rights Reserved.

Supplemental Materials

What is included with this book?

The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.

The Used, Rental and eBook copies of this book are not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.

Rewards Program