#Errors and Solution for Clearance gem
-
ActiveRecord::StatementInvalid in SessionsController#create_from_omniauth Could not find table 'authentications' authentication = Authentication.find_by_provider_and_uid(auth_hash["provider"], auth_hash["uid"]) || Authentication.create_with_omniauth(auth_hash)
Solution:
create authentication table with uid,token and provider column
-
NoMethodError in SessionsController#create_from_omniauth undefined method `friendly_name=' for #User:
Solution:
add
friendly_namecolumn to users table
-
NoMethodError in SessionsController#create_from_omniauth undefined method `picture =' for #User:
Solution:
add
picturecolumn to users table
-
NoMethodError in SessionsController#create_from_omniauth undefined method `friendly_name =' for #User:
Solution:
add
friendly_namecolumn to users table
-
NoMethodError in SessionsController#create_from_omniauth undefined method `last_name =' for #User:
Solution:
add
last_namecolumn to users table
-
ActiveModel::MissingAttributeError in SessionsController#create_from_omniauth can't write unknown attribute `user_id
Solution:
add
user_idcolumn to authentications table