Rails 4: how to redirect_to a subdomain action
<p>In my rails 4 application I am trying to redirect to a controller action which is routed to a subdomain while passing some parameters to it.</p>

<p>Here is what works, but what needs some improvement:</p>

<pre><code>redirect_to "http://subdomain.lvh.me:3000/build"
</code></pre>

<p>As you can see, currently no paramters get passed to that url.<br>I'd like to pass <code>(id: params[:id]).</code><br><br>
I am wondering if there is a way to do this with the pathfinder as I am trying to access a subdomain action from my main domain.</p>