This is a module that has a protected ApplicationController#render_404 function, allowing you to render the Rails 404.html file whenever you please from your controllers.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
README.md

README.md

Usage

Submodule this into your Rails app In your ApplicationController add the following:

class ApplicationController < ActionController::Base
  ...
  include Render404
end