This seems really elementary and I have no clue what is wrong… I have
shift items from the left select box to the right box and vice versa)
and I want to grab what is in the second box after the user clicks
submit. It seems that each time I try to get that info in my controller,
it is returning nil. My form is as follows:
<%= form_tag :controller => ‘push’, :action => ‘index’, :type => ‘test’
Choose users to sync (<%= @address_num %> total users)
<% @address_array.each do |item| %>
<%= submit_tag ‘submit’ %>
<%= end_form_tag -%>
In my controller, I have:
@results = params[:sel2]
but it turns out that @results is nil every time!
Does anybody know what is going wrong??
- Jeff M.