Okay, updating my current submit form. This may be correct usage for
the two different teams - it appears to match correctly in the url at
least:
<div id="nav-main">
<h1> Test Virtual Matchups </h1>
<div class="centerAlign">
<% form_tag teams_path, :method => :get do %>
<%= collection_select(:team, :id, @teamnames, :id, :name, options ={
:prompt => "- Select Team One" }, { :name => 'teamone[id]' } ) %>
<%= collection_select(:team, :id, @teamnames, :id, :name, options ={
:prompt => "- Select Team Two" }, { :name => 'teamtwo[id]' } ) %>
<%= submit_tag "Compare" %>
<% end %>
</div>
</div>
I changed the :name so that team one is teamone[id] and team two is
teamtwo[id] but I haven't done anything with the information. I have
still yet to figure that part out. Still working on it but let me know
if anyone has answers to the previous questions and to this update.
thanks.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---