O'Reilly logo

Sails.js in Action by Mike McNeil

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7. Custom actions

This chapter covers

  • Demystifying controllers, actions, and routes
  • Developing custom action implementation requirements from requests
  • Transitioning blueprint actions into custom actions
  • Using the req and res dictionaries in actions
  • Completing a working user identity management system

Recall that our clients have asked us to build functionality that allows them to control access to Brushfire and, more specifically, to indirectly control the content of the site. In a nutshell, we’re attempting to enable 24/7 ubiquitous cat content! In chapter 6, you completed the first part of user identity management, which involved creating and configuring a user model that will hold attributes to identify a user. In this chapter, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required