2008-12-29 06:30:26 +00:00
|
|
|
class WebratController < ApplicationController
|
2008-12-30 04:14:26 +00:00
|
|
|
|
2008-12-29 06:30:26 +00:00
|
|
|
def form
|
|
|
|
end
|
2008-12-30 04:14:26 +00:00
|
|
|
|
2008-12-29 06:30:26 +00:00
|
|
|
def submit
|
2009-01-14 04:33:47 +00:00
|
|
|
render :text => "OK <a href='/' id='link_id'>Test Link Text</a>"
|
2008-12-29 06:30:26 +00:00
|
|
|
end
|
2008-12-30 04:14:26 +00:00
|
|
|
|
2009-01-05 04:56:52 +00:00
|
|
|
def internal_redirect
|
2008-12-30 04:14:26 +00:00
|
|
|
redirect_to :submit
|
|
|
|
end
|
2009-01-05 04:56:52 +00:00
|
|
|
|
|
|
|
def external_redirect
|
|
|
|
redirect_to "http://google.com"
|
|
|
|
end
|
2008-12-30 04:14:26 +00:00
|
|
|
|
2008-12-29 06:30:26 +00:00
|
|
|
end
|