###解決策
application_helper
def resource_name
:user
end
def resource
@resource ||= User.new
end
def devise_mapping
@devise_mapping ||= Devise.mappings[:user]
end
こちらのコードをポイっと入れるだけです!
解決!
Go to list of users who liked
More than 1 year has passed since last update.
###解決策
def resource_name
:user
end
def resource
@resource ||= User.new
end
def devise_mapping
@devise_mapping ||= Devise.mappings[:user]
end
こちらのコードをポイっと入れるだけです!
解決!
Register as a new user and use Qiita more conveniently
Go to list of users who liked