trabajo-afectivo/app/controllers/tests_controller.rb

18 lines
280 B
Ruby
Raw Normal View History

2012-11-23 08:36:12 +00:00
class TestsController < ApplicationController
# GET /test
def index
respond_to do |format|
format.html # index.html.erb
end
end
# GET /test/wait
def wait
sleep params[:sec].to_i
result = { :success => true }
render :json => result
end
end