Class: LinkRouterController
Instance Method Summary
collapse
set_default_configuration!
Instance Method Details
#index ⇒ Object
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# File 'app/controllers/link_router_controller.rb', line 10
def index
begin
svc_response = ServiceResponse.find(params[:id])
rescue ActiveRecord::RecordNotFound => exception
log_error_with_context(exception, :warn)
raise exception end
@collection = self.create_collection
clickthrough = Clickthrough.new
clickthrough.request_id = svc_response.request_id
clickthrough.service_response_id = svc_response.id
clickthrough.save
redirect_to calculate_url_for_response(svc_response)
end
|