Question: I want a `/plan` method to return a json object that's itself returned by another local (but belonging to another web app in java) URL (let's call it `/plan2` for the sake of this question). 

What I want is not a redirect but really to have `/plan` return the data **as it is returned** by `/plan2`, to which I'm appending a bunch of other keys. Since the request is local, would using `Net::HTTP` be overkill? What are my options, considering I'd also like to send an HTTP Accept header along.

Answer: 
Shooting in the dark here, but I am assuming that `/plan` belongs to public Rails app and the `/plan2` is the url from **another web app** (maybe not even Rails) on the same server accessible by Rails app but not publicly available. If this is the case, then yes, you can get the response, but I would suggest rather [OpenURI](http://www.ruby-doc.org/stdlib-1.9.3/libdoc/open-uri/rdoc/OpenURI.html) or [Mechanize](https://github.com/tenderlove/mechanize/) than `Net::HTTP`. If you put it in `respond_to` JSON format block then everything should be fine with `Accept` header also.
I would suggest encapsulating whatever functionality /plan2 uses and simply re-use that in /plan1

But if you just want to get it to work...

```
class PlanController < ApplicationController
  def plan1
    plan2(extra_parameter_1: true, extra_parameter_2: 'hello')
  end

  def plan2(extra = {})
    params.merge!(extra)

    # Whatever your code was before...
  end
end

```