public
Description: A Rails plugin to use exceptions for generating HTTP status responses.
Home | Edit | New

Installation

This plugin can be installed as a Ruby gem or as a Rails plugin (depecated).

Installation as a Ruby gem

Installing the plugin as a Ruby gem in your project is the recommended installation method. Add the following line to your config/environment.rb file:

Rails::Initializer.run do |config|
  ...
  config.gem 'http_status_exceptions', :source => 'http://gemcutter.org'
end

Afterwards, run rake gems:install to actually download and install the gem on your system. Now, see BasicUsage to see how to make use of this plugin once it is enabled in your project.

Installation as a Rails plugin

It is possible to install http_status_exceptions as a classic Rails plugin as well, but this is deprecated. Use the following command in your project root:

script/plugin install git://github.com/wvanbergen/http_status_exceptions.git

Alternatively, you could download the plugin and put it in the vendor/plugins directory of your Rails application

Last edited by wvanbergen, Sat Oct 10 01:05:20 -0700 2009
Home | Edit | New
Versions: