```ruby
require "application_responder"

class ApplicationController < ActionController::Base
  self.responder = ApplicationResponder
  respond_to :html

  # Prevent CSRF attacks by raising an exception.
  # For APIs, you may want to use :null_session instead.
  protect_from_forgery with: :exception


  def after_sign_in_path_for(resource)
    user_profile_path(resource)
  end
end
```

Fix double flash responders on sign on
user
```ruby
require "application_responder"

class ApplicationController < ActionController::Base
  self.responder = ActionController::Responder
  respond_to :html

  # Prevent CSRF attacks by raising an exception.
  # For APIs, you may want to use :null_session instead.
  protect_from_forgery with: :exception


  def after_sign_in_path_for(resource)
    user_profile_path(resource)
  end
end
```
assistant