```ruby
class CallbacksController < Devise::OmniauthCallbacksController

    def facebook
      @user = User.from_omniauth(request.env["omniauth.auth"])
      sign_in @user, :event => :authentication
        if !(@user.org_affiliate)
          redirect_to new_organization_path
        else
          @organization = Organization.find(current_user.organization_id)
          redirect_to @organization
        end
    end

    # def after_sign_up_path_for(resource)
    #  new_organization_path
    # end
end
```

Add organization_id instead of org affilate in sign_in method
user
```ruby
class CallbacksController < Devise::OmniauthCallbacksController

    def facebook
      @user = User.from_omniauth(request.env["omniauth.auth"])
      sign_in @user, :event => :authentication
        if !(@user.organization_id)
          redirect_to new_organization_path
        else
          @organization = Organization.find(current_user.organization_id)
          redirect_to @organization
        end
    end
end
```
assistant