Open jcomplex opened 12 years ago
I'm also running into this, is MSSQL unsupported in will_filter?
Open up the config/will_filter/config.yml
Add this under data_types: nvarchar: [nil, text, text_delimited]
I also had to add the following, you may or may not need that also bit: [nil, boolean]
I'm using MSSQL also.
I am trying to implement will_filter in my rails app and I am getting the following error.
WillFilter::FilterException in Call_logs#index
Showing C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/will_filter-3.1.9/app/views/will_filter/filter/_conditions_footer.html.erb where line #3 raised:
[FATAL][2012-09-10 12:58:46 -0400] ActionView::Template::Error (Unsupported data type nvarchar): 1: <div class="actions"> 2: Order: 3: <%= select_tag(:wf_order, options_for_select(wf_filter.condition_options, wf_filter.order), {:onChange=>"markDirty()"}) %> 4: <%= select_tag(:wf_order_type, options_for_select(wf_filter.order_type_options, wf_filter.order_type), {:onChange=>"markDirty()"}) %> 5: Per Page: 6: <%= select_tag(:wf_per_page, options_for_select(wf_filter.per_page_options, wf_filter.per_page.to_s), {:onChange=>"markDirty()"}) %> app/views/call_logs/index.html.erb:3:in
_app_views_call_logs_index_html_erb__1023601144_31561716' app/controllers/call_logs_controller.rb:9:in
index'I followed the steps in the setup and here are my pages:
call_logs_controller.rb
index.html.erb
My database is MS SQL 2008 and the majority of the column datatypes are nvarchar (xx) and here is my gemfile:
Any help would be great.