Skip to content

Instantly share code, notes, and snippets.

@jackdempsey
Created September 5, 2008 16:40
Show Gist options
  • Save jackdempsey/8986 to your computer and use it in GitHub Desktop.
Save jackdempsey/8986 to your computer and use it in GitHub Desktop.
class Test < Application
# ...and remember, everything returned from an action
# goes to the client...
def index
if true
return redirect url(:action => 'foo')
else
'no go'
end
end
def foo
'hi'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment