Skip to content

ymendel/considered_harmful

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

= 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

About

Rails plugin to add some needed 'goto' behavior

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages