Special offers now — see discounted courses.
day
:
hour
:
min
:
sec
See special offers
Ruby on Rails 6: Controllers and Views

Ruby on Rails 6: Controllers and Views

2h 38mBeginner2020-09-08

Authors

Kevin Skoglund

Kevin Skoglund

Founder of NovaFabrica

Course details

Build smarter controllers and better looking webpages with Ruby on Rails. This course teaches developers how to better implement controllers and views in Ruby on Rails 6. This is a foundational course to teach the fundamentals and best practices around these common programming concepts. Learn how to leverage the most useful features of controllers, including maintaining state with cookie and session data, displaying messages, organizing code, and using filters for routine tasks. Next, discover how to render different types of data, how to use view layouts, and how to incorporate assets such as images, style sheets, and JavaScript. Finally, find out how to work more efficiently with Ruby helper methods, which make common tasks like formatting text and numbers, date and time calculations, and outputting form fields easier.

Learning objectives
Storing data in cookies and sessions
Using the flash hash for messages
Using filters to call methods automatically
Rendering views
Using layouts for shared templates
Incorporating images, style sheets, and JavaScript
Using images as CSS backgrounds
Preventing CSRF and XSS exploits with built-in tools
Working faster with built-in and custom helpers

Skills covered

Ruby on RailsBack-End Web DevelopmentFull-Stack Web DevelopmentWeb DevelopmentOpen SourceDeep Dive (X:Y)

Concepts

0. Introduction

  • 01 - Smarter controllers and better looking webpages
  • 02 - What you should know
  • 03 - Using the exercise files GitHub repository

1. Useful Controller Features

  • 04 - Store data in cookies
  • 05 - Store data in sessions
  • 06 - Messaging with the flash hash
  • 07 - Log information to a file
  • 08 - Inherit common behaviors with ApplicationController
  • 09 - Use filters to call methods automatically
  • 10 - Understanding CSRF protections
  • 11 - Challenge - Controllers
  • 12 - Solution - Controllers

2. Rendering Views

  • 13 - Avoid double render errors
  • 14 - More options for rendering content
  • 15 - Use layouts for shared templates
  • 16 - Capture content for later use
  • 17 - Challenge - Views
  • 18 - Solution - Views

3. Incorporating Assets

  • 19 - Add style sheets to view templates
  • 20 - Use static image assets
  • 21 - Use images as CSS backgrounds
  • 22 - About JavaScript in Ruby on Rails
  • 23 - Manage JavaScript with Webpacker
  • 24 - Configure asset pipeline for JavaScript
  • 25 - Manage JavaScript with asset pipeline

4. Work Faster with Helpers

  • 26 - Text helpers
  • 27 - Sanitization helpers
  • 28 - Number helpers
  • 29 - Date and time helpers
  • 30 - Form helpers
  • 31 - Custom helpers
  • 32 - Challenge - Helpers
  • 33 - Solution - Helpers

Conclusion

  • 34 - Next steps

About us

LyndaKade is a leading learning platform that helps people learn business, software, technology, and creative skills to achieve personal and professional goals.

Phone numberAparat ChannelTelegram SupportTelegram ChannelInstagram Page

All rights to this site belong to LyndaKade.

Terms of Service|Privacy Policy

نماد الکترونیک enamad در صورت اتصال با آی‌پی داخل کشور، نمایش داده خواهد شد.
logo-samandehi - لوگو ساماندهی
Zarinpal
Zibal