% carriers =
{
'AT&T' => 'att',
'Verizon' => 'verizon',
'T Mobile' => 'tmobile',
'Sprint' => 'sprint',
'Nextel' => 'nextel',
'Virgin Mobile' => 'vmobile',
'Alltel' => 'alltel',
'Cricket' => 'cricket'
}
%>
SMS This
<%= form_tag url_for(:controller => "catalog", :action => "sms"), :id => 'sms_form', :method => :post do %>
<%= label_tag(:to, "Phone Number:") %>
<%= text_field_tag :to %>
<%= label_tag(:carrier, "Carrier:") %>
<%= select_tag(:carrier, options_for_select(carriers.to_a.sort.unshift(["Please select your carrier",'']), '')) %>
<% @documents.each do |doc| %>
<%=hidden_field_tag "id[]", doc.get(:id)%>
<% end %>
<%= submit_tag "Send" %>
<% end %>