```ruby
class ApplicationController < ActionController::Base
  protect_from_forgery with: :exception
end
```

Add helpers for current chef, logged in, and require_user
user
```ruby
class ApplicationController < ActionController::Base
  protect_from_forgery with: :exception

  helper_mathod :current_chef, :logged_in?

  def current_chef
    @current_chef ||= Chef.find session[:chef_id] if session[:chef_id]
  end

  def logged_in?
    !!current_chef
  end

  def require_user
    if !logged_in?
      flash[:danger] = 'You must be logged in to do that'
      redirect_to root_path
    end
  end
end
```
assistant