Ruby on Rails Explained for Front-End Developers
Minimum price
Suggested price

Ruby on Rails Explained for Front-End Developers

About the Book

Ruby on Rails is an extremely powerful full-stack web application framework, but with its power comes complexity. For front-end developers who simply need to edit HTML, CSS, and JS within a Ruby on Rails application, it can be a daunting task. This book explains what front-end developers needs to know about Ruby on Rails in order to work their mastery within a rails app.

By the end of the book, you'll be able to:

* know where to put your html, css, & js within the structure of a ruby on rails app

* how rails routes requests to controllers

* using views, layouts, and partials in controllers

* what the asset pipeline is and how to use it

* how controllers and views in rails work together to render a response in the browser

* how data is added to views and how to link to the data in your html

Want to get this book for free? Sign up for my newsletter at

  • Share this book

About the Author

Miles Matthias
Miles Matthias

Miles Matthias (@miles_matthias) is the CTO of @EquityEats. 

In between trips and sips, usually with planes and bourbon, Miles enjoys talking to people about difficult challenges and tapping on his keyboard to help solve them.

Miles moved to Boulder in January of 2012, after meeting his future wife and picking up degrees in Computer Science and Information Assurance in Omaha, Nebraska. Boulder was his ninth move after growing up in Virginia, Kansas, Illinois, and Indiana, and would be more than happy if Colorado became his permanant home.

With experience in network security monitoring, vulnerability assessments, red hat teaming, bash scripting, and web and iOS development, Miles enjoys building simple and beautiful applications, contributing to the open source community, and writing about his life experiences.

Table of Contents

  • Introduction
  • A Brief Introduction to Ruby on Rails
  • Ruby on Rails Directory Structure
  • Routes
    • Routes config
    • Resources
  • Using Controllers, Views, and Layouts
    • A basic controller view setup
    • Layouts
    • yield and content_for in layouts
  • Partials and Helpers in Views
    • Partials
    • Asset Helpers
  • The Asset Pipeline
    • Path helping
    • Automatic Pre-processing
    • Cache Busting
    • Pre-compiling Assets - a warning
  • Data in Views
  • Acknowledgements

The Leanpub 60-day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms

80% Royalties. Earn $16 on a $20 book.

We pay 80% royalties. That's not a typo: you earn $16 on a $20 sale. If we sell 5000 non-refunded copies of your book or course for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earnedover $12 millionwriting, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub