Ruby on Rails Controllers


Not CompletedSection Introduction

This section explains how you can work with controllers in a Rails 5 application, including: how to work with sessions in Rails, understanding params, and reviewing data flow.

Not CompletedRails Data Flow Review and Working with Params

This guide walks through how to work with the params hash in a Rails 5 application, including how to access params from the controller and view.

Not CompletedUsing Rails Sessions to Share Data Between Pages

This guide explains how you can work with sessions in Rails 5 to share data between pages, and how to pull data from the params hash.

Not CompletedRefactoring the Session Tracker into a Controller Concern

This guide walks through how to refactor the session tracking system into its own controller concern to improve the code organization in the Rails 5 application.

Not CompletedWorking with Strong Params in a Rails 5 Controller

Strong parameters can help to protect your site from malicious hacking attempts. In this guide we'll walk through what strong params are, how to make them optional, and how to build a strong param method from scratch.

Not CompletedDeep Dive: Implementing the Null Object Pattern in Rails to Override the Devise Current User Method

The null object pattern is a helpful design pattern that enables methods to be called with more confidence. In this deep dive we'll walk through how to implement the null object pattern in a Rails application to override the Devise current_user method to enable a guest user feature.

Quizzes


Rails COntrollers
    Unsupported Browser

    devCamp does not support ancient browsers.
    Install a modern version for best experience.