Displaying 1 result from an estimated 1 matches for "supported_card_typ".
Did you mean:
supported_card_types
2008 Apr 05
2
model select and non-model select_tag
Hello everyone, I''m just trying to understand some logical reasons
behind Rails syntax of "select" and "select_tag".
I know I can do this:
<%= form.select :card_type, supported_card_types,
{ :prompt => "Please Select..."} %>
which sets a model field in the params hash.
If I want to do the same for a non-model field, logic would dictate
something like:
<%= select :card_type, supported_card_types,
{ :prompt...