Customizing devise views and controllers
This commit is contained in:
parent
7e93da3f8d
commit
6045b6cb18
19 changed files with 398 additions and 17 deletions
|
@ -2,6 +2,7 @@ class User < ActiveRecord::Base
|
|||
devise :database_authenticatable, :registerable, :recoverable, :rememberable, :trackable, :validatable
|
||||
|
||||
belongs_to :account, inverse_of: :user
|
||||
accepts_nested_attributes_for :account
|
||||
|
||||
validates :account, presence: true
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue