Created
September 5, 2008 16:40
-
-
Save jackdempsey/8986 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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