title: Rails root path based on user intput
body: <p>I need to let the user select a root path (or a get) to be one of many pages he has created. That means, i want to be able to created the page "fantastic page" and set it to be the front page (<a href="http://example.com/" rel="nofollow">http://example.com/</a>).</p>
  
  <p>Is this at all possible? I have tried sending the user to a fixed action and redirecting the user to the selected action but that leaves me with a route like this: <a href="http://example.com/page/8" rel="nofollow">http://example.com/page/8</a></p>
  
  <p>My desired result is: <a href="http://example.com/" rel="nofollow">http://example.com/</a>
  (while the page is the one selected by the user).</p>
  
  <p>Any help is appreciated :)</p>
  
  <p><strong>Edit:</strong> I need to clarify. I want the user to be able to select a page or a photo. That means I need the user to be able so select both the controller and the action.</p>
  
  <p>Something like this:</p>
  
  <pre><code>constraints(Subdomain) do
      get "/" =&gt; '#{user_selected_controller}#{user_selected_action}/#{:id}'
  end
  </code></pre>
  
  <p>The code above is completely wrong. But i think it illustrates what i want to accomplish.</p>