README.rdoc in wvanbergen-http_status_exceptions-0.1.4 vs README.rdoc in wvanbergen-http_status_exceptions-0.1.5
- old
+ new
@@ -17,9 +17,27 @@
config.gem 'wvanbergen-http_status_exceptions', :lib => 'http_status_exceptions', :source => 'http://gems.github.com'
end
Run <tt>rake gems:install</tt> to install the gem if needed.
+== Configuration
+
+You can modify where HTTP status exception looks for its template files like so:
+
+ class ApplicationController < ActionController::Base
+ ...
+ HTTPStatus::Base.template_path = 'path_to/http_status_templates'
+ end
+
+You can also modify which layout is used when rendering a template by setting the <tt>template_layout</tt>:
+
+ class ApplicationController < ActionController::Base
+ ...
+ HTTPStatus::Base.template_layout = 'exception'
+ end
+
+If you don't set a template_layout the current layout for the requested action will be used.
+
== Usage
class BlogController < ApplicationController
def destroy