How to use f.select for static hash value?
<p>How can we use f.select tag for collection of static hash values</p>

<pre><code>class ReceiptPrinter
         RECEIPT_PRINTER_TYPES ={
            0=&gt; "Normal",
            1=&gt; "Dot Matrix",
            2=&gt; "Thermal",
          }

        def initialize(options={})
                @receipt_printer_type=options[:receipt_printer_type] || DEFAULT_VALUES[:ReceiptPrinterType]
                @receipt_printer_header_height=options[:receipt_printer_header_height]|| DEFAULT_VALUES[:ReceiptPrinterHeaderHeight]
                @receipt_printer_header_type=options[:receipt_printer_header_type]|| DEFAULT_VALUES[:ReceiptPrinterHeaderType]
                @receipt_printer_template=options[:receipt_printer_template]|| DEFAULT_VALUES[:ReceiptPrinterTemplate]
                # define_methods()
        end
 end
</code></pre>

<p>In my view page i used select option </p>

<pre><code>&lt;% form_for @receipt_printer, :url =&gt; { :action =&gt; "fees_receipt_settings" } do |f| %&gt;
    &lt;%= f.select("receipt_printer_template", @settings.map{| item| [item[0],item[1].to_i]},{},{:onchange =&gt; "set_template(this.value)"} ) %&gt;
&lt;% end %&gt;
</code></pre>

<p>I am getting error wrong number of arguments</p>