Otherwise I'd ask you to extend a little bit your explanation on the problem so we can try to help.
Regards.
On Monday, August 6, 2012 at 1:33 PM, maserranocaceres wrote:
> I have a `Order` object with a `status` attribute something like:
> class Order
> include Mongoid::Document
> field :status, :type => String
> end
> The status attribute can have 11 values:
> pa, ip, wr, cp, cb, sr, ex, io, co, ca, cca
> In my index view I have a select something like:
> <%= select(:order, :status, [["#{t('.order_pa')}", 1], ["#{t('.order_ip')}", 2], ["#{t('.order_wr')}", 3], ["#{t('.order_cp')}", 4], ["#{t('.order_cb')}", 5], ["#{t('.order_sr')}", 6], ["#{t('.order_ex')}", 7], ["#{t('.order_io')}", 8], ["#{t('.order_co')}", 9], ["#{t('.order_ca')}", 10], ["#{t('.order_cca')}", 10]]) %>
> I want filter objects depending on the value that I send from **form**.
> **How can I do this task with simple_form gem?**
> Thank you very much!