I saw a lot of similar questions here, but nothing that fits my needs perfectly.
I'm a pretty experienced rails developer, but this new project is my first time using Rails 3 and Devise (I'm usually on authlogic).
There are two different models in my application that I want to authenticate through devise.
One, User is the standard user model Two, Business is similar to a user (it also has an email address column), but it has additional information in the database (address, phone number, etc.).
I want to be able to register both of them through one login form. Then, obviously, after they enter the system, they will be presented with different information depending on what type of model is included in the system.
It may or may not be relevant that I planned to use OmniAuth to allow users (though probably not businesses) to register / login via facebook.
Thanks!
What is the easiest way to do this?
authentication ruby-on-rails ruby-on-rails-3 devise
goddamnyouryan
source share