The Rails View: Create a Beautiful and Maintainable User Experience

3.77 avg rating
( 69 ratings by Goodreads )
 
9781934356876: The Rails View: Create a Beautiful and Maintainable User Experience
View all copies of this ISBN edition:
 
 

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 or later 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.

"synopsis" may belong to another edition of this title.

Review:

The Rails View: Rules for the View

  1. Our markup should have meaning. We write templates using semantic HTML.
  2. Our style sheets should handle presentation. We don’t use markup to style or use images when CSS will do.
  3. Our templates should be free of client-side code. We unobtrusively attach behavior from our JavaScript files.
  4. Our templates should be easy to read. We consistently indent correctly using spaces instead of tabs, type lines no longer than eighty characters, and extract complex logic to helpers and presenters.
  5. Our templates should be easy to find. We use standard naming conventions and place them in the directory for the related resource (or the layout).
  6. Our markup should be easy for the entire team to modify. We prefer rendering partials over generating markup from Ruby code.
  7. Our technology choices should help, not hinder, the team. We use the templating language and tools that work best for all of us.
  8. Our designs for the Web should work on a variety of devices and browsers. We build for the simplest interactions first and support progressive enhancement.
  9. Our designs for email must work for a wide range of providers. We use HTML tables and images as necessary and always provide a plain-text alternative.
  10. Our application should perform as well as it needs to, when it needs to. We implement the most elegant approach first, then we optimize when necessary.

About the Author:

Bruce Williams is a longtime speaker, trainer, designer, and book contributor in the Ruby and Rails community and has experience in everything from low-level data processing backends to front-end user interaction. He is a Senior Developer in R&D at LivingSocial.

John Athayde is a UI/UX/Design type who comes from an architecture (of the building variety) background. He's been in the Rails community since 2006 and has broad experience in e-commerce and running creative teams. He is currently a Senior UI/UX Designer at LivingSocial.

"About this title" may belong to another edition of this title.

Top Search Results from the AbeBooks Marketplace

1.

Bruce Williams; John Athayde
Published by Pragmatic Bookshelf (2012)
ISBN 10: 1934356875 ISBN 13: 9781934356876
New Softcover Quantity Available: 1
Seller:
Irish Booksellers
(Portland, ME, U.S.A.)
Rating
[?]

Book Description Pragmatic Bookshelf, 2012. Condition: New. book. Seller Inventory # M1934356875

More information about this seller | Contact this seller

Buy New
US$ 21.75
Convert currency

Add to Basket

Shipping: FREE
Within U.S.A.
Destination, rates & speeds

2.

Bruce Williams, John Athayde
Published by Pragmatic Bookshelf (2012)
ISBN 10: 1934356875 ISBN 13: 9781934356876
New Paperback Quantity Available: 1
Seller:
Ergodebooks
(RICHMOND, TX, U.S.A.)
Rating
[?]

Book Description Pragmatic Bookshelf, 2012. Paperback. Condition: New. Seller Inventory # DADAX1934356875

More information about this seller | Contact this seller

Buy New
US$ 24.29
Convert currency

Add to Basket

Shipping: US$ 3.99
Within U.S.A.
Destination, rates & speeds

3.

Williams, Bruce, Athayde, John
Published by Pragmatic Bookshelf (2012)
ISBN 10: 1934356875 ISBN 13: 9781934356876
New Paperback Quantity Available: 2
Seller:
Murray Media
(North Miami Beach, FL, U.S.A.)
Rating
[?]

Book Description Pragmatic Bookshelf, 2012. Paperback. Condition: New. Never used!. Seller Inventory # P111934356875

More information about this seller | Contact this seller

Buy New
US$ 42.26
Convert currency

Add to Basket

Shipping: FREE
Within U.S.A.
Destination, rates & speeds

4.

Bruce Williams/ John Athayde
Published by Pragmatic Bookshelf (2012)
ISBN 10: 1934356875 ISBN 13: 9781934356876
New Paperback Quantity Available: 1
Seller:
Revaluation Books
(Exeter, United Kingdom)
Rating
[?]

Book Description Pragmatic Bookshelf, 2012. Paperback. Condition: Brand New. 1st edition. 264 pages. 8.90x7.40x0.80 inches. In Stock. Seller Inventory # zk1934356875

More information about this seller | Contact this seller

Buy New
US$ 51.36
Convert currency

Add to Basket

Shipping: US$ 9.77
From United Kingdom to U.S.A.
Destination, rates & speeds