Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 1.33 KB

errors_and_solutions.md

File metadata and controls

30 lines (19 loc) · 1.33 KB

#Errors and Solution for Clearance gem

  1. 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

  2. NoMethodError in SessionsController#create_from_omniauth undefined method `friendly_name=' for #User:

    Solution: add friendly_name column to users table

  3. NoMethodError in SessionsController#create_from_omniauth undefined method `picture =' for #User:

    Solution: add picture column to users table

  4. NoMethodError in SessionsController#create_from_omniauth undefined method `friendly_name =' for #User:

    Solution: add friendly_name column to users table

  5. NoMethodError in SessionsController#create_from_omniauth undefined method `last_name =' for #User:

    Solution: add last_name column to users table

  6. ActiveModel::MissingAttributeError in SessionsController#create_from_omniauth can't write unknown attribute `user_id

    Solution: add user_id column to authentications table