Skip to content

sf-wdi-18/auth_and_json_rendering

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auth & Secure JSON Routes

Project includes

  • User & Sessions routes for Authorizing a user in rails
  • helper methods for current_user
  • Examples of how we can build has_secure_password from scratch (see previous commits).
  • Rendering JSON with
    • a before_action that checks that a user is logged in
    • eager loading
    • include & except options to format the data we send back to the frontend

About

A barebones implementation of rail authorization

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published