Learn how to build smarter controllers and better looking webpages with Ruby on Rails 6.
Overview
Syllabus
Introduction
- Smarter controllers and better looking webpages
- What you should know
- Using the exercise files GitHub repository
- Store data in cookies
- Store data in sessions
- Messaging with the flash hash
- Log information to a file
- Inherit common behaviors with ApplicationController
- Use filters to call methods automatically
- Understanding CSRF protections
- Challenge: Controllers
- Solution: Controllers
- Avoid double render errors
- More options for rendering content
- Use layouts for shared templates
- Capture content for later use
- Challenge: Views
- Solution: Views
- Add style sheets to view templates
- Use static image assets
- Use images as CSS backgrounds
- About JavaScript in Ruby on Rails
- Manage JavaScript with Webpacker
- Configure asset pipeline for JavaScript
- Manage JavaScript with asset pipeline
- Text helpers
- Sanitization helpers
- Number helpers
- Date and time helpers
- Form helpers
- Custom helpers
- Challenge: Helpers
- Solution: Helpers
- Next steps
Taught by
Kevin Skoglund