Exception: Mack::Errors::ResourceNotFound
- Defined in:
- lib/mack/errors/errors.rb
Overview
Raised when an action tries to render a resource that can’t be found.
Example:
http://www.mackframework.com/my_missing_file.jpg
Instance Method Summary collapse
-
#initialize(resource) ⇒ ResourceNotFound
constructor
Takes the resource that can’t be found.
Constructor Details
#initialize(resource) ⇒ ResourceNotFound
Takes the resource that can’t be found.
Example:
http://www.mackframework.com/my_missing_file.jpg # => my_missing_file.jpg would be the resource
46 47 48 |
# File 'lib/mack/errors/errors.rb', line 46 def initialize(resource) super(resource) end |