Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: v1.0
Fetching contributors…

Cannot retrieve contributors at this time

37 lines (25 sloc) 0.855 kb
= 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
Jump to Line
Something went wrong with that request. Please try again.