A Lab Test Fulfillment System With A Multi Role Model Using Ruby on Rails


Side note on OmniAuth. Since I have effectively three different types of account sign ups, I wanted everyone to be able to sign up with their google account. This posed a challenge at first because I needed to assign different roles based on the sign up form and maintain state through the process. Luckily there is a simple way you can do this by appending information to the OmniAuth request URL which is then stored in the callback hash. So based on different parameters in the callback we assign different roles.



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store