app/controllers/javascript_controller.rb in test_server-0.2.2 vs app/controllers/javascript_controller.rb in test_server-0.2.3

- old
+ new

@@ -16,21 +16,21 @@ param :base64, Boolean, default: false configure_caching(params) end - get '/xhr/url/?' do + get :url, map: '/xhr/url' do param :count, Integer, default: 10 param :timeout, Integer, default: 10 param :url, String param :repeat, String, default: 'false' @count = params[:count] @url = params[:url] @timeout = params[:timeout] @repeat = %w{ on yes true t }.include?(params[:repeat]) - haml :'xhr/show', layout: :application + render 'xhr/show', layout: :application end end end end