Rails, redirect parameters [closed]

I have to restore rails applications using only log files. It is last version of Redmine. All HTTP parameters (GET, POST, PUT) I have captured in log file and want to know how to redirect them directly to ruby application using console. (I'm not experienced in ruby/rails applications).Logs have such structure:Processing IssuesController#create (for 192.168.0.69 at 2012-05-24 16:58:49) [POST] Parameters: {"commit"=>"Create", "project_id"=>"PROJ1", "action"=>"create", "authenticity_token"=>"TOKEN", "issue"=>{"start_date"=>"2012-05-24", "custom_field_values"=>{"18"=>""}, "estimated_hours"=>"", "parent_issue_id"=>"15666", "priority_id"=>"6", "is_private"=>"0", "fixed_version_id"=>"", "done_ratio"=>"0", "assigned_to_id"=>"80", "subject"=>"TITLE", "category_id"=>"", "tracker_id"=>"4", "due_date"=>"", "status_id"=>"1", "description"=>"DESCRIPTION"}, "controller"=>"issues", "attachments"=>{"1"=>{"description"=>""}}}Sending email notification to: [email protected] to http://redmine.example.com/issues/15668Completed in 1555ms (DB: 16) | 302 Found [http://redmine.example.com/projects/PROJ1]Sometines there is other format like xml of jsonProcessing IssuesController#create to xml (for 192.168.0.69 at 2012-05-25 11:29:56) [POST] Parameters: {"format"=>"xml", "action"=>"create", "issue"=>{"project_id"=>"41", "assigned_to_id"=>nil, "subject"=>"SUBJECT", "description"=>"DESC"}, "controller"=>"issues"}Sending email notification to:Rendering issues/show (created)Completed in 107ms (View: 7, DB: 35) | 201 Created [http://redmine.example.com/issues.xml]Processing IssuesController#update to json (for 192.168.0.69 at 2012-05-24 14:30:49) [PUT] Parameters: {"format"=>"json", "action"=>"update", "id"=>"15659", "issue"=>{"start_date"=>"2012/05/24", "created_on"=>"2012/05/24 14:24:20 +0200", "author"=>{"name"=>"Chuck Norris", "id"=>69}, "fixed_version"=>{"name"=>"test", "id"=>207}, "priority"=>{"name"=>"Normal", "id"=>4}, "id"=>15659, "subject"=>"234234234234234234234234234234234", "updated_on"=>"2012/05/24 14:24:20 +0200", "project"=>{"name"=>"testproject", "id"=>61}, "done_ratio"=>0, "tracker"=>{"name"=>"Bug-L3", "id"=>1}, "custom_fields"=>[{"name"=>"Reproducibility", "id"=>13, "value"=>""}, {"name"=>"Resolution", "id"=>15, "value"=>""}, {"name"=>"Severity", "id"=>16, "value"=>""}, {"name"=>"Fixed in version", "id"=>17}, {"name"=>"Trunk no.", "id"=>18, "value"=>""}, {"name"=>"Browser", "id"=>20, "value"=>""}, {"name"=>"Browser Version", "id"=>21, "value"=>""}], "description"=>"", "status"=>{"name"=>"Ready To Test", "id"=>18}}, "controller"=>"issues"}Completed in 99ms (View: 0, DB: 11) | 200 OK [http://redmine.example.com/issues/15659.json]Could I pass this params directly to controller? (ex. ./app/controllers/issues_controller.rb)
 
Back
Top