Rails Partials and Helpers
Treehouse
Course Summary
Ruby on Rails has a number of features to help split up your templates in to more manageable chunks. In this course we'll learn how to use two of those features: partials and helpers.
-
+
Course Description
About this Course Ruby on Rails has a number of features to help split up your templates in to more manageable chunks. In this course we'll learn how to use two of those features: partials and helpers. What you'll learn
- Ruby on Rails
- Partial templates
- Rails Helpers
About the Teacher
Nick is a teacher at Treehouse and an independent game developer. His Twitter handle is @nickrp.
-
+
Course Syllabus
Ruby on Rails Partials
Ruby on Rails partials help break up templates in to smaller, more manageable chunks. 7 steps- What are partials? 0:41
- Ruby on Rails Partials 4 questions
- Extract Logged In and Out Partials 3:34
- Extract Logged in and Logged Out Partials 2 questions
- Form Partial Walk-Through 0:28
- Variable Scope in Partials 0:48
- Form Partials and Variable Scope in Forms 4 questions
Ruby on Rails Helpers
Helper modules in Ruby on Rails are used for creating methods to craft custom output and formatting in views. 6 stepsStyling Rails Models
With the groundwork in place for the Rails asset pipeline, we can start to apply design and styling. We'll work through this one model and controller at a time. 7 steps