Ruby on Rails authentication with Devise
Topics: Ruby on Rails, Authentication
Devise is a Ruby on Rails authentication library.
Creating users with an associated model
class User < ActiveRecord::Base
has_one :profile, dependent: :destroy
after_create :init_profile
def init_profile
self.create_profile!
end
end