Michael Hartl's rails tutorial: reusing sessions resource for multiple User types
- by ntaj
I'm learning Ruby on Rails through Micheal Hartl's tutorial.
In my web application, I require two types of Users, called publishers and subscribers. Currently I have a publishers resource and a subscribers resource. I'd like both of them to be able to use the sessions resource for signin/signout.
I'm looking for some direction on how to…