[Rails] simple form problem
I think this was working at one point but now i dont know if i ever
tested it. The problem is that it is not sending the value in the text
field as a parameter when submit is pressed. so in the submitBid method
in the controller params[:bidAmount] = nil no matter what is typed in
the field.
<% form_remote_tag(:url => {:action => 'submitBid'}, :condition =>
"bidCheck()") do%>
<td><%= text_field_tag :bidAmount , "", { :id => 'bidAmount', :size =>
4, :onKeyPress => "return numbersonly(this,event)" } %></td>
<td id="btnSubmit"> <%= submit_tag 'Bid' %></td>
<% end %>
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home