ymendel / considered_harmful

Rails plugin to add some needed 'goto' behavior

This URL has Read+Write access

ymendel (author)
Fri Jun 19 11:33:40 -0700 2009
commit  458fb61479d3dfc6043dbb357496a218ad8ddf72
tree    600801e241dc01a4c95b6dd0987d5fb70536a967
parent  625527b92b0918c0fb1c7f0a81671d984487724e
name age message
file MIT_LICENSE Loading commit data...
file README
file init.rb
file install.rb
directory lib/
directory spec/
README
= Considered Harmful
<b>Version 1.0 (19 Jun 2009)</b>

Author::    Yossef Mendelssohn (ymendel@pobox.com)
Copyright:: Copyright (c) 2009 Yossef Mendelssohn
License::   MIT License.  See MIT-LICENSE file for more details.

Considered Harmful is a Ruby on Rails plugin that lets you "goto" locations rather than redirecting to them.

== Installation

script/plugin install git://github.com/ymendel/considered_harmful.git

== Using Considered Harmful
  
Say you have a controller action like so:
  
    class ThingsController < ApplicationController
      def update
        # some code here
        redirect_to thing
      end
    end

That's just way too long. Try this instead.

    class ThingsController < ApplicationController
      def update
        # some code here
        goto thing
      end
    end

== Version history:

  1.0 - Initial release