title: Trying to fire an action in my controller when a selection in a drop down menu is made but getting a no route matches error
body: <p>I'm building a web interface to accompany a mobile app I'm building. I have a drop down select menu that lists a bunch locations.</p>
  
  <p>On selection of a location I want to make a call to a method in my controller and grab some destinations within the location that was selected (each location has several destinations).</p>
  
  <p>I then would like to render my show template with these results allowing the user to select a destination and make a booking.</p>
  
  <p>This is what I have so far:</p>
  
  <p><strong>My view with a list of resorts:</strong></p>
  
  <pre><code>&lt;%= form_tag :url =&gt; { :action =&gt; :show } do %&gt;
  &lt;%= select_tag :resort , options_for_select(@resorts), :prompt =&gt; 'Select Resort', :onchange =&gt; 'submit()' %&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p><strong>Controller:</strong></p>
  
  <pre><code>class HomeController &lt; ApplicationController
    def index
            @resorts = ["A","B", "C", "D", "E"]
    end
  
    def new
    end
  
    def edit
    end
  
    def create
    end
  
    def show
      @activities = Parse::Query.new("Activity").tap do |a|
        a.eq("resort", params[:resort])
      end.get
    end
  
  end
  </code></pre>
  
  <p>Just slightly confused. Using form_for makes more sense to me with CRUD in mind and also because the form is object based. </p>
  
  <p>I'd like to just take the selected resorted and pass it into a method in my controller that goes into a database and grabs a bunch of destinations. I then want to list these destinations on my show page where a user can click and be taken to another page where they can make a booking at that destination.</p>
  
  <p>My above code doesn't work. I have resources :home in my routes file.</p>
  
  <p>However when I try to load my page with the form I get:</p>
  
  <pre><code>No route matches {:action=&gt;"show", :controller=&gt;"home"} missing required keys: [:id]
  </code></pre>
  
  <p>How do I pull this off? </p>
  
  <p>I went on my lynda account and pulled up a rails essential tutorial which I'll have to use to refresh my memory some time tomorrow but the tutor doesn't cover use of select_tag.</p>
  
  <p>Would appreciate some help here</p>
  
  <p>Thanks for your time</p>