Acknowledgments | p. ix |
Preface | p. xi |
Creating an Application Layout | p. 1 |
Creating a Basic Layout | p. 2 |
Setting Up a Boilerplate | p. 6 |
Building the Page Frame | p. 14 |
Adding a Sidebar | p. 23 |
Adding Navigation | p. 28 |
Displaying Notifications | p. 36 |
Validating Our Code | p. 39 |
Testing Internet Explorer | p. 41 |
Wrapping Up | p. 47 |
Improving Readability | p. 49 |
Choosing a Templating Language | p. 49 |
Standardizing Coding Practices | p. 51 |
Simplifying Complex Output | p. 56 |
Working with Models | p. 63 |
Displaying Conditional Content | p. 65 |
Adding Model DOM IDs for JavaScript | p. 69 |
Cleaning Up | p. 71 |
Wrapping Up | p. 72 |
Adding Cascading Style Sheets | p. 73 |
Using the Asset Pipeline | p. 73 |
Learning SCSS | p. 76 |
Adding Sprites | p. 88 |
Using Web Fonts | p. 92 |
Wrapping Up | p. 98 |
Adding JavaScript | p. 101 |
Using JavaScript from Rails | p. 101 |
Testing Ajax | p. 110 |
Wrapping Up | p. 117 |
Building Maintainable Forms | p. 119 |
Using Semantic Form Tags | p. 119 |
Building Custom Form Builders | p. 132 |
Looking Toward the Future of HTML5 Form Elements | p. 140 |
Wrapping Up | p. 142 |
Using Presenters | p. 143 |
Presenting a Record | p. 144 |
Presenting Multiple Records | p. 153 |
Using Presenters for Serialization | p. 158 |
Wrapping Up | p. 161 |
Handling Mobile Views | p. 163 |
Building a Flexible Layout | p. 164 |
The Next Level with Responsive Design (©media queries) | p. 168 |
Using Mobile-Specific Templates | p. 174 |
Using jQuery Mobile | p. 179 |
Wrapping Up | p. 188 |
Working with Email | p. 189 |
Building a Mailer | p. 189 |
Handling Email Templates | p. 191 |
Testing Locally | p. 195 |
Testing Across Clients | p. 196 |
Wrapping Up | p. 206 |
Optimizing Performance | p. 207 |
A/B Testing with Vanity | p. 207 |
Performance Testing and Maintenance | p. 214 |
Wrapping Up | p. 228 |
Where Do We Go from Here? | p. 229 |
The Rails View Rules | p. 233 |
Bibliography | p. 235 |
Index | p. 237 |
Table of Contents provided by Ingram. All Rights Reserved. |
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.