Giter VIP home page Giter VIP logo

will_filter's Introduction

WillFilter

will_filter is a Rails engine plugin that provides a GUI for filtering your ActiveRecord models.

Preamble

If you ever had to build an admin tool for your web site that displayed a list of objects that can be filtered using various criteria, this plugin will make your life easier. Adding a filtered page can now be a matter of adding two lines of code - one to your controller and one to your view. See examples below.

Installation Instructions

Add the following gems to your Gemfile:

gem 'will_filter'
gem 'kaminari'

And run:

$ bundle

To configure and initialize will_filter engine, run the following commands:

$ rails generate will_filter  
$ rake db:migrate

At the top of your routes.rb file, add the following line:

mount WillFilter::Engine => "/will_filter"

Examples

To add a filtered result-set to your controller use the following method call:

class UsersController < ApplicationController

  def index
    @users = User.filter(:params => params)    
  end

end

Note: ‘User’ is a Rails ActiveRecord model

Now all you have to do is create a view for this action and add the following tag where you want the filter to be rendered:

<%= will_filter_tag(@users) %>

And optionally you can do (for results table):

<%= will_filter_table_tag(@users) %>

That’s it. This will render a filter box with various conditions, operators and values for the model object you selected.

Documentation

Please read the following document to learn more about filter customization:

github.com/berk/will_filter/wiki/Customizing-Filters

Please read the following document to learn more about table tag customization:

github.com/berk/will_filter/wiki/Customizing-Table-View

Dummy Application

This plugin comes with a dummy test project. To try out some of the examples, run the following commands:

$ git clone git://github.com/berk/will_filter.git
$ cd will_filter/test/dummy  
$ rake db:migrate 
$ rake samples:init
$ rails server

Open your browser and point to:

http://localhost:3000

If you have any questions, comments or suggestions, email me at [email protected]

Authors and credits

Authors

Michael Berkovich

will_filter's People

Contributors

aziz avatar berk avatar noahpryor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

will_filter's Issues

Calendar won't display

When i want to filter by datetime field, i can not display the calendar. It was working a few months back but it doesn't seem to be a regression because i tried to use other version of the gem but the problem remmain the same

ActionController::RoutingError - No route matches {:controller=>"will_filter/calendar"}:
(gem) actionpack-3.2.11/lib/action_dispatch/routing/route_set.rb:533:in raise_routing_error' (gem) actionpack-3.2.11/lib/action_dispatch/routing/route_set.rb:529:inrescue in generate'
(gem) actionpack-3.2.11/lib/action_dispatch/routing/route_set.rb:521:in generate' (gem) actionpack-3.2.11/lib/action_dispatch/routing/route_set.rb:562:ingenerate'
(gem) actionpack-3.2.11/lib/action_dispatch/routing/route_set.rb:587:in url_for' (gem) actionpack-3.2.11/lib/action_dispatch/routing/url_for.rb:148:inurl_for'
(gem) actionpack-3.2.11/lib/action_view/helpers/url_helper.rb:107:in url_for' (gem) actionpack-3.2.11/lib/action_view/helpers/form_tag_helper.rb:619:inblock in html_options_for_form'
(gem) actionpack-3.2.11/lib/action_view/helpers/form_tag_helper.rb:615:in tap' (gem) actionpack-3.2.11/lib/action_view/helpers/form_tag_helper.rb:615:inhtml_options_for_form'
(gem) actionpack-3.2.11/lib/action_view/helpers/form_tag_helper.rb:68:in form_tag' (gem) haml-4.0.3/lib/haml/helpers/action_view_mods.rb:132:inform_tag_with_haml'
(gem) haml-4.0.3/lib/haml/helpers/action_view_xss_mods.rb:18:in form_tag_with_haml_xss' (gem) will_filter-3.1.10/app/views/will_filter/calendar/index.html.erb:15:in__home_ubuntu__rvm_gems_ruby_______p____gems_will_filter________app_views_will_filter_calendar_index_html_erb___699857499__657661438'

The problem seem to be in will_filter/calendar/index.html.erb in form_tag({:controller => "/will_filter/calendar"}.

If i replace {:controller => "/will_filter/calendar"} by "will_filter/calendar" the calendar is displayed.

is it running out_of_the_box as stated in the doc ?

I installet it as stated in the doc , but when upon index view display I get :
Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id
Extracted source (around line #2):
1:


2: <%= hidden_field_tag(:wf_id, wf_filter.id) %>
3: <%= hidden_field_tag(:wf_type, wf_filter.class.name) %>
4: <%= hidden_field_tag(:wf_dirty, "false") %>
5: <%= hidden_field_tag(:wf_submitted, "false") %>

trace beginning giving :

will_filter (3.1.9) app/views/will_filter/filter/_conditions_header.html.erb:2:in ___sers_yves__rvm_gems_ruby_______p____rails___gems_will_filter_______app_views_will_filter_filter__conditions_header_html_erb__1227307440605590586_70225104965280' actionpack (3.2.8) lib/action_view/template.rb:145:inblock in render'
activesupport (3.2.8) lib/active_support/notifications.rb:125:in instrument' actionpack (3.2.8) lib/action_view/template.rb:143:inrender'

what am I missing ?

Unsupported data type nvarchar error

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:inindex'

I followed the steps in the setup and here are my pages:

call_logs_controller.rb

def index
    @call_logs = CallLog.filter(:params => params)
    respond_to do |format|
      format.html # index.html.erb
      format.json { render json: @call_logs }
    end
  end

index.html.erb

<%= will_filter_tag(@call_logs) %>

My database is MS SQL 2008 and the majority of the column datatypes are nvarchar (xx) and here is my gemfile:

GEM
  remote: https://rubygems.org/
  specs:
    actionmailer (3.2.4.rc1)
      actionpack (= 3.2.4.rc1)
      mail (~> 2.4.4)
    actionpack (3.2.4.rc1)
      activemodel (= 3.2.4.rc1)
      activesupport (= 3.2.4.rc1)
      builder (~> 3.0.0)
      erubis (~> 2.7.0)
      journey (~> 1.0.1)
      rack (~> 1.4.0)
      rack-cache (~> 1.2)
      rack-test (~> 0.6.1)
      sprockets (~> 2.1.3)
    activemodel (3.2.4.rc1)
      activesupport (= 3.2.4.rc1)
      builder (~> 3.0.0)
    activerecord (3.2.4.rc1)
      activemodel (= 3.2.4.rc1)
      activesupport (= 3.2.4.rc1)
      arel (~> 3.0.2)
      tzinfo (~> 0.3.29)
    activerecord-sqlserver-adapter (3.2.9)
      activerecord (~> 3.2.0)
    activeresource (3.2.4.rc1)
      activemodel (= 3.2.4.rc1)
      activesupport (= 3.2.4.rc1)
    activesupport (3.2.4.rc1)
      i18n (~> 0.6)
      multi_json (~> 1.0)
    addressable (2.3.2)
    annotate (2.4.1.beta1)
    arel (3.0.2)
    bcrypt-ruby (3.0.1-x86-mingw32)
    bootstrap-sass (2.0.2)
    bootstrap-will_paginate (0.0.5)
      will_paginate
    builder (3.0.0)
    capybara (1.1.2)
      mime-types (>= 1.16)
      nokogiri (>= 1.3.3)
      rack (>= 1.0.0)
      rack-test (>= 0.5.4)
      selenium-webdriver (~> 2.0)
      xpath (~> 0.1.4)
    childprocess (0.3.5)
      ffi (~> 1.0, >= 1.0.6)
    coffee-rails (3.2.2)
      coffee-script (>= 2.2.0)
      railties (~> 3.2.0)
    coffee-script (2.2.0)
      coffee-script-source
      execjs
    coffee-script-source (1.3.3)
    columnize (0.3.6)
    cucumber (1.2.1)
      builder (>= 2.1.2)
      diff-lcs (>= 1.1.3)
      gherkin (~> 2.11.0)
      json (>= 1.4.6)
    cucumber-rails (1.2.1)
      capybara (>= 1.1.2)
      cucumber (>= 1.1.3)
      nokogiri (>= 1.5.0)
    daemons (1.1.9)
    database_cleaner (0.7.0)
    debugger (1.2.0)
      columnize (>= 0.3.1)
      debugger-linecache (~> 1.1.1)
      debugger-ruby_core_source (~> 1.1.3)
    debugger-linecache (1.1.2)
      debugger-ruby_core_source (>= 1.1.1)
    debugger-ruby_core_source (1.1.3)
    diff-lcs (1.1.3)
    erubis (2.7.0)
    eventmachine (1.0.0.beta.4.1-x86-mingw32)
    exception_notification (2.6.1)
      actionmailer (>= 3.0.4)
    execjs (1.4.0)
      multi_json (~> 1.0)
    factory_girl (2.3.2)
      activesupport
    factory_girl_rails (1.4.0)
      factory_girl (~> 2.3.0)
      railties (>= 3.0.0)
    faker (1.0.1)
      i18n (~> 0.4)
    ffi (1.1.5)
    gherkin (2.11.1-x86-mingw32)
      json (>= 1.4.6)
    guard (1.3.2)
      listen (>= 0.4.2)
      thor (>= 0.14.6)
    guard-rspec (0.5.5)
      guard (>= 0.8.4)
    guard-spork (0.3.2)
      guard (>= 0.8.4)
      spork (>= 0.8.4)
    hike (1.2.1)
    i18n (0.6.0)
    journey (1.0.4)
    jquery-rails (2.0.2)
      railties (>= 3.2.0, < 5.0)
      thor (~> 0.14)
    json (1.7.4)
    kaminari (0.14.0)
      actionpack (>= 3.0.0)
      activesupport (>= 3.0.0)
    launchy (2.1.2)
      addressable (~> 2.3)
    letter_opener (0.0.2)
      launchy
    libwebsocket (0.1.5)
      addressable
    listen (0.4.7)
      rb-fchange (~> 0.0.5)
      rb-fsevent (~> 0.9.1)
      rb-inotify (~> 0.8.8)
    mail (2.4.4)
      i18n (>= 0.4.0)
      mime-types (~> 1.16)
      treetop (~> 1.4.8)
    mime-types (1.19)
    multi_json (1.3.6)
    nokogiri (1.5.5-x86-mingw32)
    polyglot (0.3.3)
    quiet_assets (1.0.1)
      railties (~> 3.1)
    rack (1.4.1)
    rack-cache (1.2)
      rack (>= 0.4)
    rack-ssl (1.3.2)
      rack
    rack-test (0.6.1)
      rack (>= 1.0)
    rails (3.2.4.rc1)
      actionmailer (= 3.2.4.rc1)
      actionpack (= 3.2.4.rc1)
      activerecord (= 3.2.4.rc1)
      activeresource (= 3.2.4.rc1)
      activesupport (= 3.2.4.rc1)
      bundler (~> 1.0)
      railties (= 3.2.4.rc1)
    railties (3.2.4.rc1)
      actionpack (= 3.2.4.rc1)
      activesupport (= 3.2.4.rc1)
      rack-ssl (~> 1.3.2)
      rake (>= 0.8.7)
      rdoc (~> 3.4)
      thor (>= 0.14.6, < 2.0)
    rake (0.9.2.2)
    rb-fchange (0.0.5)
      ffi
    rb-fsevent (0.9.1)
    rb-inotify (0.8.8)
      ffi (>= 0.5.0)
    rb-notifu (0.0.4)
    rdoc (3.12)
      json (~> 1.4)
    rspec (2.10.0)
      rspec-core (~> 2.10.0)
      rspec-expectations (~> 2.10.0)
      rspec-mocks (~> 2.10.0)
    rspec-core (2.10.1)
    rspec-expectations (2.10.0)
      diff-lcs (~> 1.1.3)
    rspec-mocks (2.10.1)
    rspec-rails (2.10.0)
      actionpack (>= 3.0)
      activesupport (>= 3.0)
      railties (>= 3.0)
      rspec (~> 2.10.0)
    rubyzip (0.9.9)
    sass (3.2.1)
    sass-rails (3.2.4)
      railties (~> 3.2.0)
      sass (>= 3.1.10)
      tilt (~> 1.3)
    selenium-webdriver (2.25.0)
      childprocess (>= 0.2.5)
      libwebsocket (~> 0.1.3)
      multi_json (~> 1.0)
      rubyzip
    spork (0.9.0-x86-mingw32)
      win32-process
    sprockets (2.1.3)
      hike (~> 1.2)
      rack (~> 1.0)
      tilt (~> 1.1, != 1.3.0)
    thin (1.4.1)
      daemons (>= 1.0.9)
      eventmachine (>= 0.12.6)
      rack (>= 1.0.0)
    thor (0.16.0)
    tilt (1.3.3)
    tiny_tds (0.5.1-x86-mingw32)
    treetop (1.4.10)
      polyglot
      polyglot (>= 0.3.1)
    tzinfo (0.3.33)
    uglifier (1.2.3)
      execjs (>= 0.3.0)
      multi_json (>= 1.0.2)
    will_filter (3.1.9)
      kaminari
      rails (>= 3.2.3)
      sass
    will_paginate (3.0.3)
    win32-api (1.4.8-x86-mingw32)
    win32-process (0.6.6)
      windows-pr (>= 1.2.2)
    win32console (1.3.0-x86-mingw32)
    windows-api (0.4.2)
      win32-api (>= 1.4.5)
    windows-pr (1.2.2)
      win32-api (>= 1.4.5)
      windows-api (>= 0.3.0)
    xpath (0.1.4)
      nokogiri (~> 1.3)

PLATFORMS
  x86-mingw32

DEPENDENCIES
  activerecord-sqlserver-adapter
  annotate (~> 2.4.1.beta)
  bcrypt-ruby (= 3.0.1)
  bootstrap-sass (= 2.0.2)
  bootstrap-will_paginate (= 0.0.5)
  capybara (= 1.1.2)
  coffee-rails (= 3.2.2)
  cucumber-rails (= 1.2.1)
  database_cleaner (= 0.7.0)
  debugger
  eventmachine (= 1.0.0.beta.4.1)
  exception_notification
  factory_girl_rails (= 1.4.0)
  faker (= 1.0.1)
  guard-rspec (= 0.5.5)
  guard-spork (= 0.3.2)
  jquery-rails
  kaminari
  letter_opener
  quiet_assets
  rails (= 3.2.4.rc1)
  rb-fchange (= 0.0.5)
  rb-notifu (= 0.0.4)
  rspec-rails (= 2.10.0)
  sass-rails (= 3.2.4)
  spork (= 0.9.0)
  thin
  tiny_tds
  uglifier (= 1.2.3)
  will_filter (~> 3.1.0)
  win32console (= 1.3.0)

Any help would be great.

undefined method `id' for nil:NilClass

I am currently using will_filter in conjunction with tr8n. When I try to go to either the admin or the will_filter page, this error will pop up

will_filter-3.1.8/app/views/will_filter/filter/_conditions_header.html.erb

1:


2: <%= hidden_field_tag(:wf_id, wf_filter.id) %>
3: <%= hidden_field_tag(:wf_type, wf_filter.class.name) %>
4: <%= hidden_field_tag(:wf_dirty, "false") %>
5: <%= hidden_field_tag(:wf_submitted, "false") %>

a few side notes I have changed up Tr8n and WillFilter slightly because the kaminari gem has a conflict with the will_paginate gem (which I have to use so that my server actually works as intended). I had to change the kaminari method calls to will_paginate ones. Running jruby 1.6.7.2 and rails 3.2.3. Let me know if there is any other relevant information I left out, thanks in advance.

Missing assets when using as a plugin dependency

I'm developing plugins for Redmine and I'm trying to use this gem. My goal is to include it without modifying any code of the application (Redmine).

I've add the gem dependency in my Gemfile, the migration as a plugin migration and I've patch the WillFilter::Config class to load config from /plugins/.../config/.... The mount WillFilter::Engine => "/will_filter" has been added to the plugin's routes.

When I run rake routes I can see all will_filter's routes, the will_filter_tag is being displayed BUT I'm getting 404 on all will_filter's assets.

Is there any way to manually precompile them to the public directory or something that works for me? I'm just missing that.

is_in operator failed ?

Hi, berk, first thank you for bringing up such a good tool/framework to filter active records. I really enjoy your UI and clean codes.

After using for a while, I found out that "is_in" operator seems to not working, do you know what's going on here?

As pictures shows below:
http://d.pr/i/l8tF
http://d.pr/i/AOFy

500 error with 'is filtered by'

If i try to filter on Id with is filtered by i got an 500 error. Saved and default filters exist.

Completed 500 Internal Server Error in 30ms
  ActionView::Template::Error (undefined method `sql_conditions' for nil:NilClass):
      35:   <% end %>
      36: 
      37:   <div id="wf_debugger" class="debugger" style="display:none;">
      38:       <%= raw(wf_filter.debug_sql_conditions) %>
      39:   </div>
      40: 
      41: </div>
    will_filter (3.1.6) lib/will_filter/containers/filter_list.rb:52:in `sql_condition'

# Setup
class TasksController < ApplicationController
  def index
    @tasks = Task.filter(:params => params)
  end
end

<%= will_filter_tag(@tasks) %>
<%= will_filter_table_tag(@tasks) %>

rake will_filter:sync and tr8n:sync aborted

Berk:
I get the following error when running Rails 2.3.10 and Ruby 1.8.7

root@srv2:/var/www/rails/tr8n# rake --trace will_filter:sync
rake/rdoctask is deprecated. Use rdoc/task instead (in RDoc 2.4.2+)
rake aborted!
Don't know how to build task 'will_filter:sync'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/task_manager.rb:49:in []' /usr/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:111:ininvoke_task'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:90:in top_level' /usr/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:90:ineach'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:90:in top_level' /usr/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:129:instandard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:84:in top_level' /usr/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:62:inrun'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:129:in standard_exception_handling' /usr/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:59:inrun'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.2/bin/rake:32
/usr/bin/rake:19:in `load'
/usr/bin/rake:19

Any ideas?

Is it possible to access results or current_user in Filter?

I am using cancan for authorization and want to limit a field list to only accessible values.

Is it possible to access results or current_user in Filter:value_options_for or what is the best practise to archive this?

class TasksController < ApplicationController
  load_and_authorize_resource

  def index
    @tasks = @tasks.filter(:params => params, :filter => :task_filter)
...

class Task < ActiveRecord::Base
  belongs_to :user
  scope :users, joins(:user).select("CONCAT(users.firstname, ' ' , users.lastname) AS name, tasks.user_id").uniq
... 

class TaskFilter < WillFilter::Filter
  def definition
    defs = super  
    defs[:"user_id"] = {:is => :list, :is_not => :list}
    defs
  end

  def value_options_for(criteria_key)
    if criteria_key == :"user_id"
      # is it possible to access @tasks or current_user somehow?
      # return @tasks.users.collect{|user| [user.name, user.user_id.to_s]}
      return Task.users.collect{|user| [user.name, user.user_id.to_s]}
    end
  end
...

rspec test fail with: Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id

Hi,

I am getting an error in rspec. In the view itself it works without a problem.

Here is how i use it:
config/will_filter/config.yml is not changed.

model client.rb:
belongs_to :license
has_one :license_key

clients_controller.rb:
def index
@Clients = Client.filter(:params => params)
end

index.html.haml:
%p= will_filter_tag(@Clients)
= will_filter_table_tag(@Clients)

index.html.haml_spec.rb:
require 'spec_helper'

describe "clients/index" do
before(:each) do
assign(:clients, [
stub_model(Client),
stub_model(Client)
])
end

it "renders a list of clients" do
render
end
end

RSpec error message:
Failures:

  1. clients/index renders a list of clients
    Failure/Error: render
    ActionView::Template::Error:
    Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id

    ./app/views/clients/index.html.haml:1:in `_app_views_clients_index_html_haml__2707070858207547506_2179859460'

    ./spec/views/clients/index.html.haml_spec.rb:12:in`block (2 levels) in <top (required)>'

I can't find the cause for the failing rspec.

error on date range

I saw this project mentioned on RailsCasts in the comments, so I gave the dummy app a try.
I had to add a Gemfile to dummy/app/, then it works fine except for the following error when trying a date range filter:

Started GET "/advanced/users?utf8=%E2%9C%93&wf_id=&wf_type=UserFilter&wf_dirty=false&wf_submitted=true&wf_name=&wf_model=User&wf_export_format=&wf_export_fields=&wf_match=all&wf_c0=sex&wf_o0=is&wf_v0_0=male&wf_c1=created_at&wf_o1=is_in_the_range&wf_v1_0=2012-04-11+18%3A43%3A55&wf_v1_1=2012-04-30+18%3A44%3A01&wf_order=id&wf_order_type=desc&wf_per_page=30" for 127.0.0.1 at 2012-04-12 18:44:06 -0400
Processing by AdvancedController#users as HTML
  Parameters: {"utf8"=>"✓", "wf_id"=>"", "wf_type"=>"UserFilter", "wf_dirty"=>"false", "wf_submitted"=>"true", "wf_name"=>"", "wf_model"=>"User", "wf_export_format"=>"", "wf_export_fields"=>"", "wf_match"=>"all", "wf_c0"=>"sex", "wf_o0"=>"is", "wf_v0_0"=>"male", "wf_c1"=>"created_at", "wf_o1"=>"is_in_the_range", "wf_v1_0"=>"2012-04-11 18:43:55", "wf_v1_1"=>"2012-04-30 18:44:01", "wf_order"=>"id", "wf_order_type"=>"desc", "wf_per_page"=>"30"}
Completed 500 Internal Server Error in 2ms

NameError (undefined local variable or method `start_time' for #<WillFilter::Containers::DateTimeRange:0x007fa9f57669d8>):
  app/controllers/advanced_controller.rb:4:in `users'

Rendered /Users/cleesmith/.rvm/gems/ruby-1.9.3-p125@will_filter/gems/actionpack-3.2.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (2.8ms)
Rendered /Users/cleesmith/.rvm/gems/ruby-1.9.3-p125@will_filter/gems/actionpack-3.2.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.2ms)
Rendered /Users/cleesmith/.rvm/gems/ruby-1.9.3-p125@will_filter/gems/actionpack-3.2.3/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (9.1ms)

There is not much activity on this project ... is it still supported ?

Thanks,
Chris

How to do a simple delete link

actions = []
actions << link_to('edit', :action => :edit, :id => obj.id) #works fine
actions << link_to('delete', :action => ? # I dont get this working...just gives me the show action
actions.join(' | ').html_safe

Thanks for info.
Werner

Do not paginate when exporting to html

The whole point of exporting to html is to have the whole data as a single table to print or convert it to other formats.
Pagination does not help here at all.

undefined method `page' for #<ActiveRecord::Relation:...>

Hi,
not sure if it is a tr8n or wf problem.
When I call http://localhost:3000/tr8n/admin/language I get

undefined method page' for #<ActiveRecord::Relation:0x00000005c9be68> activerecord (3.2.6) lib/active_record/relation/delegation.rb:45:inmethod_missing'
/home/philipp/.rvm/gems/ruby-1.9.3-p194@pictrs/bundler/gems/will_filter-716aad337c06/app/models/will_filter/filter.rb:821:in results' /home/philipp/.rvm/gems/ruby-1.9.3-p194@pictrs/bundler/gems/will_filter-716aad337c06/lib/will_filter/extensions/active_record_extension.rb:45:infilter'
/home/philipp/.rvm/gems/ruby-1.9.3-p194@pictrs/bundler/gems/tr8n-99d29d57818c/app/controllers/tr8n/admin/language_controller.rb:27:in `index'

ActiveRecord::Relation seems to be an Array of Tr8n::Language at this point.

Using the git master for both tr8n and will_filter

Any Ideas?

Thanks and regards, Phil

What to put in Gemfile / Installation

Hi

I'm new to Rails and have been using the gemfile and bundle install to manage gems locally and on Heroku.

It seems will_filter is incompatible but maybe I'm doing something wrong.

What I have put in my gemfile is:
gem 'will_paginate'
gem 'will_filter', :git => "git://github.com/berk/will_filter.git"

When I run bundle install this happens:
Updating git://github.com/berk/will_filter.git
Fetching source index for http://rubygems.org/
Could not find gem 'will_filter (>= 0, runtime)' in git://github.com/berk/will_filter.git (at master).
Source does not contain any versions of 'will_filter (>= 0, runtime)'

"gem install will_filter" also does not work, but "gem install will_paginate" does.

Also when I follow the instructions in the readme: "script/plugin install git://github.com/mislav/will_paginate.git" it says "-bash: script/plugin: No such file or directory" (Rails 3/Snow Leopard).

Any help much appreciated!

Display pagination below table

Is it possible to change the location of paginate(results)? I would like to display it below the table instead of above. It would be really cool if you made it a tag like the action_bar_tag.

I am geting intermittent seg fault

This happens in my controller where I have the following code:

@Regions = Region.filter(:params => params)

Here is the output from the seg fault:

/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/activerecord-3.2.9/lib/active_record/relation.rb:241: [BUG] Segmentation fault
ruby 1.9.3p362 (2012-12-25 revision 38607) [i686-linux]

-- Control frame information -----------------------------------------------
c:0186 p:0018 s:0821 b:0818 l:000817 d:000817 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/activerecord-3.2.9/lib/active_record/relation.rb:241
c:0185 p:0028 s:0815 b:0815 l:000814 d:000814 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/activerecord-3.2.9/lib/active_record/scoping/default.rb:41
c:0184 p:0024 s:0812 b:0812 l:001b34 d:000811 LAMBDA /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/activerecord-3.2.9/lib/active_record/scoping/named.rb:180
c:0183 p:---- s:0807 b:0807 l:000806 d:000806 FINISH
c:0182 p:0022 s:0805 b:0805 l:0017e0 d:000804 BLOCK /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/activerecord-3.2.9/lib/active_record/relation/delegation.rb:37
c:0181 p:0007 s:0803 b:0803 l:00184c d:000802 BLOCK /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/activerecord-3.2.9/lib/active_record/relation.rb:241
c:0180 p:0396 s:0801 b:0801 l:000800 d:000800 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/activerecord-3.2.9/lib/active_record/scoping.rb:98
c:0179 p:0018 s:0792 b:0792 l:00184c d:00184c METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/activerecord-3.2.9/lib/active_record/relation.rb:241
c:0178 p:0055 s:0789 b:0789 l:0017e0 d:0017e0 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/activerecord-3.2.9/lib/active_record/relation/delegation.rb:37
c:0177 p:---- s:0783 b:0783 l:000782 d:000782 FINISH
c:0176 p:0163 s:0781 b:0781 l:000780 d:000780 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/will_filter-3.1.9/app/models/will_filter/filter.rb:821
c:0175 p:0250 s:0777 b:0777 l:000776 d:000776 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/will_filter-3.1.9/lib/will_filter/extensions/active_record_extension.rb:45
c:0174 p:0069 s:0771 b:0771 l:000770 d:000770 METHOD /home/danny/funcationer/app/controllers/regions_controller.rb:14
c:0173 p:0016 s:0768 b:0768 l:000767 d:000767 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/action_controller/metal/implicit_render.rb:4
c:0172 p:0017 s:0762 b:0762 l:000761 d:000761 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/abstract_controller/base.rb:167
c:0171 p:0045 s:0757 b:0757 l:000756 d:000756 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/action_controller/metal/rendering.rb:10
c:0170 p:0012 s:0753 b:0753 l:000470 d:000752 BLOCK /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/abstract_controller/callbacks.rb:18
c:0169 p:0246 s:0751 b:0751 l:000750 d:000750 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:447
c:0168 p:0125 s:0745 b:0745 l:000744 d:000744 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:405
c:0167 p:0027 s:0736 b:0736 l:000735 d:000735 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:385
c:0166 p:0026 s:0731 b:0731 l:000730 d:000730 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:81
c:0165 p:0022 s:0725 b:0725 l:000470 d:000470 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/abstract_controller/callbacks.rb:17
c:0164 p:0014 s:0721 b:0721 l:000720 d:000720 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/action_controller/metal/rescue.rb:29
c:0163 p:0012 s:0716 b:0716 l:000697 d:000715 BLOCK /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/action_controller/metal/instrumentation.rb:30
c:0162 p:0019 s:0712 b:0712 l:000702 d:000711 BLOCK /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/activesupport-3.2.9/lib/active_support/notifications.rb:123
c:0161 p:0040 s:0710 b:0710 l:000709 d:000709 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/activesupport-3.2.9/lib/active_support/notifications/instrumenter.rb:20
c:0160 p:0040 s:0703 b:0703 l:000702 d:000702 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/activesupport-3.2.9/lib/active_support/notifications.rb:123
c:0159 p:0160 s:0698 b:0698 l:000697 d:000697 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/action_controller/metal/instrumentation.rb:29
c:0158 p:0190 s:0693 b:0693 l:000692 d:000692 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/action_controller/metal/params_wrapper.rb:207
c:0157 p:0036 s:0686 b:0686 l:000685 d:000685 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/activerecord-3.2.9/lib/active_record/railties/controller_runtime.rb:18
c:0156 p:0103 s:0681 b:0681 l:000680 d:000680 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/abstract_controller/base.rb:121
c:0155 p:0088 s:0675 b:0675 l:000674 d:000674 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/abstract_controller/rendering.rb:45
c:0154 p:0056 s:0670 b:0670 l:000669 d:000669 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/action_controller/metal.rb:203
c:0153 p:0092 s:0665 b:0665 l:000664 d:000664 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/action_controller/metal/rack_delegation.rb:14
c:0152 p:0032 s:0659 b:0659 l:0013fc d:000658 BLOCK /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/action_controller/metal.rb:246
c:0151 p:---- s:0656 b:0656 l:000655 d:000655 FINISH
c:0150 p:---- s:0654 b:0654 l:000653 d:000653 CFUNC :call
c:0149 p:0024 s:0650 b:0650 l:000649 d:000649 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/action_dispatch/routing/route_set.rb:73
c:0148 p:0104 s:0644 b:0644 l:000643 d:000643 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/action_dispatch/routing/route_set.rb:36
c:0147 p:0196 s:0638 b:0638 l:000621 d:000637 BLOCK /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/journey-1.0.4/lib/journey/router.rb:68
c:0146 p:---- s:0627 b:0627 l:000626 d:000626 FINISH
c:0145 p:---- s:0625 b:0625 l:000624 d:000624 CFUNC :each
c:0144 p:0055 s:0622 b:0622 l:000621 d:000621 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/journey-1.0.4/lib/journey/router.rb:56
c:0143 p:0029 s:0618 b:0618 l:000617 d:000617 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/action_dispatch/routing/route_set.rb:601
c:0142 p:0022 s:0614 b:0614 l:000613 d:000613 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/omniauth-1.1.1/lib/omniauth/strategy.rb:394
c:0141 p:0063 s:0610 b:0610 l:000609 d:000609 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/omniauth-1.1.1/lib/omniauth/strategy.rb:258
c:0140 p:0110 s:0606 b:0606 l:000605 d:000605 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/omniauth-1.1.1/lib/omniauth/strategy.rb:171
c:0139 p:0021 s:0602 b:0602 l:000601 d:000601 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/omniauth-1.1.1/lib/omniauth/strategy.rb:157
c:0138 p:0022 s:0598 b:0598 l:000597 d:000597 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/omniauth-1.1.1/lib/omniauth/strategy.rb:394
c:0137 p:0063 s:0594 b:0594 l:000593 d:000593 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/omniauth-1.1.1/lib/omniauth/strategy.rb:258
c:0136 p:0110 s:0590 b:0590 l:000589 d:000589 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/omniauth-1.1.1/lib/omniauth/strategy.rb:171
c:0135 p:0021 s:0586 b:0586 l:000585 d:000585 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/omniauth-1.1.1/lib/omniauth/strategy.rb:157
c:0134 p:0022 s:0582 b:0582 l:000581 d:000581 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/omniauth-1.1.1/lib/omniauth/strategy.rb:394
c:0133 p:0063 s:0578 b:0578 l:000577 d:000577 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/omniauth-1.1.1/lib/omniauth/strategy.rb:258
c:0132 p:0110 s:0574 b:0574 l:000573 d:000573 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/omniauth-1.1.1/lib/omniauth/strategy.rb:171
c:0131 p:0021 s:0570 b:0570 l:000569 d:000569 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/omniauth-1.1.1/lib/omniauth/strategy.rb:157
c:0130 p:0016 s:0566 b:0566 l:000557 d:000565 BLOCK /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/warden-1.2.1/lib/warden/manager.rb:35
c:0129 p:---- s:0564 b:0564 l:000563 d:000563 FINISH
c:0128 p:---- s:0562 b:0562 l:000561 d:000561 CFUNC :catch
c:0127 p:0092 s:0558 b:0558 l:000557 d:000557 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/warden-1.2.1/lib/warden/manager.rb:34
c:0126 p:0017 s:0553 b:0553 l:000552 d:000552 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/action_dispatch/middleware/best_standards_support.rb:17
c:0125 p:0017 s:0546 b:0546 l:000545 d:000545 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/rack-1.4.1/lib/rack/etag.rb:23
c:0124 p:0074 s:0538 b:0538 l:000537 d:000537 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/rack-1.4.1/lib/rack/conditionalget.rb:25
c:0123 p:0105 s:0531 b:0531 l:000530 d:000530 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/action_dispatch/middleware/head.rb:14
c:0122 p:0052 s:0524 b:0524 l:000523 d:000523 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/action_dispatch/middleware/params_parser.rb:21
c:0121 p:0060 s:0519 b:0519 l:000518 d:000518 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/action_dispatch/middleware/flash.rb:242
c:0120 p:0035 s:0511 b:0511 l:000510 d:000510 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/rack-1.4.1/lib/rack/session/abstract/id.rb:205
c:0119 p:0015 s:0503 b:0503 l:000502 d:000502 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/rack-1.4.1/lib/rack/session/abstract/id.rb:200
c:0118 p:0024 s:0499 b:0499 l:000498 d:000498 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/action_dispatch/middleware/cookies.rb:341
c:0117 p:0070 s:0491 b:0491 l:000490 d:000490 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/activerecord-3.2.9/lib/active_record/query_cache.rb:64
c:0116 p:0033 s:0482 b:0482 l:000481 d:000481 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/activerecord-3.2.9/lib/active_record/connection_adapters/abstract/connection_pool.rb
c:0115 p:0016 s:0474 b:0474 l:0003d0 d:000473 BLOCK /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/action_dispatch/middleware/callbacks.rb:28
c:0114 p:0040 s:0472 b:0472 l:000471 d:000471 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:405
c:0113 p:0125 s:0465 b:0465 l:000464 d:000464 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:405
c:0112 p:0027 s:0456 b:0456 l:000455 d:000455 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:385
c:0111 p:0026 s:0451 b:0451 l:000450 d:000450 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:81
c:0110 p:0015 s:0445 b:0445 l:0003d0 d:0003d0 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/action_dispatch/middleware/callbacks.rb:27
c:0109 p:0048 s:0441 b:0441 l:000440 d:000440 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/action_dispatch/middleware/remote_ip.rb:31
c:0108 p:0021 s:0437 b:0437 l:000436 d:000436 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/action_dispatch/middleware/debug_exceptions.rb:16
c:0107 p:0021 s:0430 b:0430 l:000429 d:000429 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/action_dispatch/middleware/show_exceptions.rb:56
c:0106 p:0049 s:0424 b:0424 l:000423 d:000423 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-rails-1.3.0/lib/cucumber/rails/action_controller.rb:10
c:0105 p:0127 s:0420 b:0420 l:000419 d:000419 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/railties-3.2.9/lib/rails/rack/logger.rb:32
c:0104 p:0017 s:0415 b:0415 l:000407 d:000414 BLOCK /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/railties-3.2.9/lib/rails/rack/logger.rb:16
c:0103 p:0025 s:0413 b:0413 l:000412 d:000412 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/activesupport-3.2.9/lib/active_support/tagged_logging.rb:22
c:0102 p:0084 s:0408 b:0408 l:000407 d:000407 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/railties-3.2.9/lib/rails/rack/logger.rb:16
c:0101 p:0052 s:0403 b:0403 l:000402 d:000402 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/action_dispatch/middleware/request_id.rb:22
c:0100 p:0107 s:0396 b:0396 l:000395 d:000395 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/rack-1.4.1/lib/rack/methodoverride.rb:21
c:0099 p:0036 s:0391 b:0391 l:000390 d:000390 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/rack-1.4.1/lib/rack/runtime.rb:17
c:0098 p:0061 s:0382 b:0382 l:000381 d:000381 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/activesupport-3.2.9/lib/active_support/cache/strategy/local_cache.rb:72
c:0097 p:0074 s:0378 b:0378 l:000377 d:000377 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/rack-1.4.1/lib/rack/lock.rb:15
c:0096 p:0136 s:0372 b:0372 l:000371 d:000371 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/action_dispatch/middleware/static.rb:62
c:0095 p:0034 s:0366 b:0366 l:000365 d:000365 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/railties-3.2.9/lib/rails/engine.rb:479
c:0094 p:0038 s:0362 b:0362 l:000361 d:000361 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/railties-3.2.9/lib/rails/application.rb:223
c:0093 p:0021 s:0358 b:0358 l:000357 d:000357 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/rack-1.4.1/lib/rack/builder.rb:134
c:0092 p:0217 s:0354 b:0354 l:000340 d:000353 BLOCK /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/rack-1.4.1/lib/rack/urlmap.rb:64
c:0091 p:---- s:0346 b:0346 l:000345 d:000345 FINISH
c:0090 p:---- s:0344 b:0344 l:000343 d:000343 CFUNC :each
c:0089 p:0075 s:0341 b:0341 l:000340 d:000340 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/rack-1.4.1/lib/rack/urlmap.rb:49
c:0088 p:0090 s:0332 b:0332 l:000331 d:000331 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/rack-test-0.6.2/lib/rack/mock_session.rb:30
c:0087 p:0074 s:0324 b:0324 l:000323 d:000323 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/rack-test-0.6.2/lib/rack/test.rb:230
c:0086 p:0060 s:0318 b:0318 l:000317 d:000317 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/rack-test-0.6.2/lib/rack/test.rb:57
c:0085 p:0025 s:0311 b:0311 l:000310 d:000310 METHOD /home/danny/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/forwardable.rb:201
c:0084 p:0373 s:0306 b:0306 l:000305 d:000305 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/capybara-2.0.2/lib/capybara/rack_test/browser.rb:59
c:0083 p:0029 s:0298 b:0298 l:000297 d:000297 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/capybara-2.0.2/lib/capybara/rack_test/browser.rb:35
c:0082 p:0077 s:0291 b:0291 l:000290 d:000290 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/capybara-2.0.2/lib/capybara/rack_test/browser.rb:31
c:0081 p:0107 s:0285 b:0285 l:000284 d:000284 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/capybara-2.0.2/lib/capybara/rack_test/node.rb:69
c:0080 p:0102 s:0281 b:0281 l:000280 d:000280 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-rails-1.3.0/lib/cucumber/rails/capybara/javascript_emulation.rb:16
c:0079 p:0017 s:0278 b:0278 l:000269 d:000277 BLOCK /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/capybara-2.0.2/lib/capybara/node/element.rb:103
c:0078 p:0047 s:0276 b:0276 l:000275 d:000275 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/capybara-2.0.2/lib/capybara/node/base.rb:78
c:0077 p:0013 s:0270 b:0270 l:000269 d:000269 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/capybara-2.0.2/lib/capybara/node/element.rb:103
c:0076 p:0023 s:0267 b:0267 l:000266 d:000266 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/capybara-2.0.2/lib/capybara/node/actions.rb:25
c:0075 p:0035 s:0263 b:0263 l:000334 d:000262 LAMBDA /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/capybara-2.0.2/lib/capybara/session.rb:341
c:0074 p:---- s:0259 b:0259 l:000258 d:000258 FINISH
c:0073 p:0026 s:0257 b:0257 l:0005ac d:000256 LAMBDA /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/capybara-2.0.2/lib/capybara/dsl.rb:51
c:0072 p:---- s:0253 b:0253 l:000252 d:000252 FINISH
c:0071 p:0013 s:0251 b:0251 l:000de4 d:000250 BLOCK /home/danny/funcationer/features/step_definitions/regions_steps.rb:28
c:0070 p:---- s:0249 b:0249 l:000248 d:000248 FINISH
c:0069 p:---- s:0247 b:0247 l:000246 d:000246 CFUNC :instance_exec
c:0068 p:0050 s:0244 b:0244 l:000235 d:000243 BLOCK /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/core_ext/instance_exec.rb:48
c:0067 p:0009 s:0242 b:0242 l:000241 d:000241 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/core_ext/instance_exec.rb:69
c:0066 p:0013 s:0236 b:0236 l:000235 d:000235 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/core_ext/instance_exec.rb:36
c:0065 p:0050 s:0229 b:0229 l:000228 d:000228 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/rb_support/rb_step_definition.rb:69
c:0064 p:0045 s:0224 b:0224 l:000223 d:000223 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/step_match.rb:25
c:0063 p:0077 s:0219 b:0219 l:000218 d:000218 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/step_invocation.rb:60
c:0062 p:0050 s:0213 b:0213 l:000212 d:000212 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/step_invocation.rb:38
c:0061 p:0012 s:0209 b:0209 l:001558 d:000208 BLOCK /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/tree_walker.rb:99
c:0060 p:0079 s:0207 b:0207 l:000206 d:000206 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/tree_walker.rb:163
c:0059 p:0013 s:0201 b:0201 l:001558 d:001558 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/tree_walker.rb:98
c:0058 p:0039 s:0197 b:0197 l:000188 d:000196 BLOCK /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/step_collection.rb:15
c:0057 p:---- s:0194 b:0194 l:000193 d:000193 FINISH
c:0056 p:---- s:0192 b:0192 l:000191 d:000191 CFUNC :each
c:0055 p:0036 s:0189 b:0189 l:000188 d:000188 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/step_collection.rb:14
c:0054 p:0012 s:0184 b:0184 l:001db0 d:000183 BLOCK /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/tree_walker.rb:93
c:0053 p:0079 s:0182 b:0182 l:000181 d:000181 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/tree_walker.rb:163
c:0052 p:0013 s:0176 b:0176 l:001db0 d:001db0 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/tree_walker.rb:92
c:0051 p:0033 s:0172 b:0172 l:000e80 d:000171 BLOCK /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/scenario.rb:55
c:0050 p:0008 s:0170 b:0170 l:000644 d:000169 BLOCK /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/runtime.rb:80
c:0049 p:0029 s:0168 b:0168 l:000167 d:000167 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/runtime.rb:96
c:0048 p:0015 s:0163 b:0163 l:000644 d:000162 BLOCK /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/runtime.rb:79
c:0047 p:---- s:0161 b:0161 l:000160 d:000160 FINISH
c:0046 p:---- s:0159 b:0159 l:000158 d:000158 CFUNC :call
c:0045 p:0014 s:0155 b:0155 l:0010ec d:000154 BLOCK /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/runtime/support_code.rb:120
c:0044 p:0005 s:0153 b:0153 l:0014a0 d:000152 BLOCK /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/language_support/language_methods.rb:9
c:0043 p:---- s:0151 b:0151 l:000150 d:000150 FINISH
c:0042 p:---- s:0149 b:0149 l:000148 d:000148 CFUNC :call
c:0041 p:0035 s:0146 b:0146 l:000145 d:000145 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/language_support/language_methods.rb:91
c:0040 p:0013 s:0141 b:0141 l:0014a0 d:0014a0 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/language_support/language_methods.rb:8
c:0039 p:0014 s:0137 b:0137 l:0010ec d:001454 BLOCK /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/runtime/support_code.rb:119
c:0038 p:---- s:0135 b:0135 l:000134 d:000134 FINISH
c:0037 p:---- s:0133 b:0133 l:000132 d:000132 CFUNC :call
c:0036 p:0027 s:0130 b:0130 l:0010ec d:0010ec METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/runtime/support_code.rb:117
c:0035 p:0041 s:0125 b:0125 l:000124 d:000124 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/runtime.rb:91
c:0034 p:0019 s:0119 b:0119 l:000644 d:000644 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/runtime.rb:78
c:0033 p:0133 s:0114 b:0114 l:000e80 d:0024dc BLOCK /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/scenario.rb:53
c:0032 p:0014 s:0112 b:0112 l:000111 d:000111 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/scenario.rb:108
c:0031 p:0036 s:0108 b:0108 l:000e80 d:000e80 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/scenario.rb:47
c:0030 p:0012 s:0104 b:0104 l:000f98 d:000103 BLOCK /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/tree_walker.rb:51
c:0029 p:0079 s:0102 b:0102 l:000101 d:000101 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/tree_walker.rb:163
c:0028 p:0013 s:0096 b:0096 l:000f98 d:000f98 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/tree_walker.rb:50
c:0027 p:0014 s:0092 b:0092 l:000083 d:000091 BLOCK /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/feature.rb:43
c:0026 p:---- s:0089 b:0089 l:000088 d:000088 FINISH
c:0025 p:---- s:0087 b:0087 l:000086 d:000086 CFUNC :each
c:0024 p:0125 s:0084 b:0084 l:000083 d:000083 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/feature.rb:42
c:0023 p:0012 s:0080 b:0080 l:002688 d:000079 BLOCK /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/tree_walker.rb:20
c:0022 p:0079 s:0078 b:0078 l:000077 d:000077 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/tree_walker.rb:163
c:0021 p:0013 s:0072 b:0072 l:002688 d:002688 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/tree_walker.rb:19
c:0020 p:0014 s:0068 b:0068 l:002644 d:000067 BLOCK /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/features.rb:29
c:0019 p:---- s:0065 b:0065 l:000064 d:000064 FINISH
c:0018 p:---- s:0063 b:0063 l:000062 d:000062 CFUNC :each
c:0017 p:0015 s:0060 b:0060 l:000059 d:000059 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/features.rb:17
c:0016 p:0051 s:0056 b:0056 l:002644 d:002644 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/features.rb:28
c:0015 p:0012 s:0051 b:0051 l:000038 d:000050 BLOCK /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/tree_walker.rb:14
c:0014 p:0079 s:0049 b:0049 l:000048 d:000048 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/tree_walker.rb:163
c:0013 p:0013 s:0043 b:0043 l:000038 d:000038 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/tree_walker.rb:13
c:0012 p:0065 s:0039 b:0039 l:000038 d:000038 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/runtime.rb:46
c:0011 p:0098 s:0035 b:0035 l:000034 d:000034 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/cli/main.rb:43
c:0010 p:0019 s:0029 b:0029 l:000028 d:000028 METHOD /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/cli/main.rb:20
c:0009 p:0220 s:0025 b:0025 l:000024 d:000024 TOP /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/bin/cucumber:14
c:0008 p:---- s:0021 b:0021 l:000020 d:000020 FINISH
c:0007 p:---- s:0019 b:0019 l:000018 d:000018 CFUNC :load
c:0006 p:0126 s:0015 b:0015 l:000014 d:000014 TOP /home/danny/funcationer/script/cucumber:9
c:0005 p:---- s:0012 b:0012 l:000011 d:000011 FINISH
c:0004 p:---- s:0010 b:0010 l:000009 d:000009 CFUNC :load
c:0003 p:0051 s:0006 b:0006 l:0007ac d:00007c EVAL -e:1
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:0007ac d:0007ac TOP

-- Ruby level backtrace information ----------------------------------------
-e:1:in <main>' -e:1:inload'
/home/danny/funcationer/script/cucumber:9:in <top (required)>' /home/danny/funcationer/script/cucumber:9:inload'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/bin/cucumber:14:in <top (required)>' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/cli/main.rb:20:inexecute'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/cli/main.rb:43:in execute!' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/runtime.rb:46:inrun!'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/tree_walker.rb:13:in visit_features' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/tree_walker.rb:163:inbroadcast'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/tree_walker.rb:14:in block in visit_features' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/features.rb:28:inaccept'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/features.rb:17:in each' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/features.rb:17:ineach'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/features.rb:29:in block in accept' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/tree_walker.rb:19:invisit_feature'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/tree_walker.rb:163:in broadcast' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/tree_walker.rb:20:inblock in visit_feature'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/feature.rb:42:in accept' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/feature.rb:42:ineach'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/feature.rb:43:in block in accept' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/tree_walker.rb:50:invisit_feature_element'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/tree_walker.rb:163:in broadcast' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/tree_walker.rb:51:inblock in visit_feature_element'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/scenario.rb:47:in accept' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/scenario.rb:108:inwith_visitor'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/scenario.rb:53:in block in accept' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/runtime.rb:78:inwith_hooks'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/runtime.rb:91:in around' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/runtime/support_code.rb:117:inaround'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/runtime/support_code.rb:117:in call' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/runtime/support_code.rb:119:inblock (2 levels) in around'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/language_support/language_methods.rb:8:in around' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/language_support/language_methods.rb:91:inexecute_around'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/language_support/language_methods.rb:91:in call' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/language_support/language_methods.rb:9:inblock in around'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/runtime/support_code.rb:120:in block (3 levels) in around' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/runtime/support_code.rb:120:incall'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/runtime.rb:79:in block in with_hooks' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/runtime.rb:96:inbefore_and_after'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/runtime.rb:80:in block (2 levels) in with_hooks' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/scenario.rb:55:inblock (2 levels) in accept'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/tree_walker.rb:92:in visit_steps' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/tree_walker.rb:163:inbroadcast'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/tree_walker.rb:93:in block in visit_steps' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/step_collection.rb:14:inaccept'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/step_collection.rb:14:in each' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/step_collection.rb:15:inblock in accept'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/tree_walker.rb:98:in visit_step' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/tree_walker.rb:163:inbroadcast'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/tree_walker.rb:99:in block in visit_step' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/step_invocation.rb:38:inaccept'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/ast/step_invocation.rb:60:in invoke' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/step_match.rb:25:ininvoke'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/rb_support/rb_step_definition.rb:69:in invoke' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/core_ext/instance_exec.rb:36:incucumber_instance_exec'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/core_ext/instance_exec.rb:69:in cucumber_run_with_backtrace_filtering' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/core_ext/instance_exec.rb:48:inblock in cucumber_instance_exec'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-1.2.1/lib/cucumber/core_ext/instance_exec.rb:48:in instance_exec' /home/danny/funcationer/features/step_definitions/regions_steps.rb:28:inblock in <top (required)>'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/capybara-2.0.2/lib/capybara/dsl.rb:51:in block (2 levels) in <module:DSL>' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/capybara-2.0.2/lib/capybara/session.rb:341:inblock (2 levels) in class:Session'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/capybara-2.0.2/lib/capybara/node/actions.rb:25:in click_link' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/capybara-2.0.2/lib/capybara/node/element.rb:103:inclick'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/capybara-2.0.2/lib/capybara/node/base.rb:78:in synchronize' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/capybara-2.0.2/lib/capybara/node/element.rb:103:inblock in click'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-rails-1.3.0/lib/cucumber/rails/capybara/javascript_emulation.rb:16:in click_with_javascript_emulation' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/capybara-2.0.2/lib/capybara/rack_test/node.rb:69:inclick'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/capybara-2.0.2/lib/capybara/rack_test/browser.rb:31:in follow' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/capybara-2.0.2/lib/capybara/rack_test/browser.rb:35:inprocess_and_follow_redirects'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/capybara-2.0.2/lib/capybara/rack_test/browser.rb:59:in process' /home/danny/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/forwardable.rb:201:inget'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/rack-test-0.6.2/lib/rack/test.rb:57:in get' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/rack-test-0.6.2/lib/rack/test.rb:230:inprocess_request'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/rack-test-0.6.2/lib/rack/mock_session.rb:30:in request' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/rack-1.4.1/lib/rack/urlmap.rb:49:incall'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/rack-1.4.1/lib/rack/urlmap.rb:49:in each' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/rack-1.4.1/lib/rack/urlmap.rb:64:inblock in call'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/rack-1.4.1/lib/rack/builder.rb:134:in call' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/railties-3.2.9/lib/rails/application.rb:223:incall'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/railties-3.2.9/lib/rails/engine.rb:479:in call' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/action_dispatch/middleware/static.rb:62:incall'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/rack-1.4.1/lib/rack/lock.rb:15:in call' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/activesupport-3.2.9/lib/active_support/cache/strategy/local_cache.rb:72:incall'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/rack-1.4.1/lib/rack/runtime.rb:17:in call' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/rack-1.4.1/lib/rack/methodoverride.rb:21:incall'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/action_dispatch/middleware/request_id.rb:22:in call' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/railties-3.2.9/lib/rails/rack/logger.rb:16:incall'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/activesupport-3.2.9/lib/active_support/tagged_logging.rb:22:in tagged' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/railties-3.2.9/lib/rails/rack/logger.rb:16:inblock in call'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/railties-3.2.9/lib/rails/rack/logger.rb:32:in call_app' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/cucumber-rails-1.3.0/lib/cucumber/rails/action_controller.rb:10:incall'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/action_dispatch/middleware/show_exceptions.rb:56:in call' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/action_dispatch/middleware/debug_exceptions.rb:16:incall'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/action_dispatch/middleware/remote_ip.rb:31:in call' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/action_dispatch/middleware/callbacks.rb:27:incall'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:81:in run_callbacks' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:385:in_run_call_callbacks'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:405:in __run_callback' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:405:in_run__171758273__call__170192727__callbacks'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/action_dispatch/middleware/callbacks.rb:28:in block in call' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/activerecord-3.2.9/lib/active_record/connection_adapters/abstract/connection_pool.rb:479:incall'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/activerecord-3.2.9/lib/active_record/query_cache.rb:64:in call' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/action_dispatch/middleware/cookies.rb:341:incall'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/rack-1.4.1/lib/rack/session/abstract/id.rb:200:in call' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/rack-1.4.1/lib/rack/session/abstract/id.rb:205:incontext'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/action_dispatch/middleware/flash.rb:242:in call' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/action_dispatch/middleware/params_parser.rb:21:incall'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/action_dispatch/middleware/head.rb:14:in call' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/rack-1.4.1/lib/rack/conditionalget.rb:25:incall'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/rack-1.4.1/lib/rack/etag.rb:23:in call' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/action_dispatch/middleware/best_standards_support.rb:17:incall'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/warden-1.2.1/lib/warden/manager.rb:34:in call' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/warden-1.2.1/lib/warden/manager.rb:34:incatch'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/warden-1.2.1/lib/warden/manager.rb:35:in block in call' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/omniauth-1.1.1/lib/omniauth/strategy.rb:157:incall'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/omniauth-1.1.1/lib/omniauth/strategy.rb:171:in call!' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/omniauth-1.1.1/lib/omniauth/strategy.rb:258:inmock_call!'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/omniauth-1.1.1/lib/omniauth/strategy.rb:394:in call_app!' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/omniauth-1.1.1/lib/omniauth/strategy.rb:157:incall'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/omniauth-1.1.1/lib/omniauth/strategy.rb:171:in call!' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/omniauth-1.1.1/lib/omniauth/strategy.rb:258:inmock_call!'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/omniauth-1.1.1/lib/omniauth/strategy.rb:394:in call_app!' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/omniauth-1.1.1/lib/omniauth/strategy.rb:157:incall'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/omniauth-1.1.1/lib/omniauth/strategy.rb:171:in call!' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/omniauth-1.1.1/lib/omniauth/strategy.rb:258:inmock_call!'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/omniauth-1.1.1/lib/omniauth/strategy.rb:394:in call_app!' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/action_dispatch/routing/route_set.rb:601:incall'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/journey-1.0.4/lib/journey/router.rb:56:in call' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/journey-1.0.4/lib/journey/router.rb:56:ineach'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/journey-1.0.4/lib/journey/router.rb:68:in block in call' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/action_dispatch/routing/route_set.rb:36:incall'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/action_dispatch/routing/route_set.rb:73:in dispatch' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/action_dispatch/routing/route_set.rb:73:incall'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/action_controller/metal.rb:246:in block in action' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/action_controller/metal/rack_delegation.rb:14:indispatch'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/action_controller/metal.rb:203:in dispatch' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/abstract_controller/rendering.rb:45:inprocess'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/abstract_controller/base.rb:121:in process' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/activerecord-3.2.9/lib/active_record/railties/controller_runtime.rb:18:inprocess_action'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/action_controller/metal/params_wrapper.rb:207:in process_action' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/action_controller/metal/instrumentation.rb:29:inprocess_action'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/activesupport-3.2.9/lib/active_support/notifications.rb:123:in instrument' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/activesupport-3.2.9/lib/active_support/notifications/instrumenter.rb:20:ininstrument'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/activesupport-3.2.9/lib/active_support/notifications.rb:123:in block in instrument' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/action_controller/metal/instrumentation.rb:30:inblock in process_action'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/action_controller/metal/rescue.rb:29:in process_action' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/abstract_controller/callbacks.rb:17:inprocess_action'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:81:in run_callbacks' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:385:in_run_process_action_callbacks'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:405:in __run_callback' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:447:in_run__565299134__process_action__529285081__callbacks'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/abstract_controller/callbacks.rb:18:in block in process_action' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/action_controller/metal/rendering.rb:10:inprocess_action'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/abstract_controller/base.rb:167:in process_action' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.9/lib/action_controller/metal/implicit_render.rb:4:insend_action'
/home/danny/funcationer/app/controllers/regions_controller.rb:14:in index' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/will_filter-3.1.9/lib/will_filter/extensions/active_record_extension.rb:45:infilter'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/will_filter-3.1.9/app/models/will_filter/filter.rb:821:in results' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/activerecord-3.2.9/lib/active_record/relation/delegation.rb:37:inmethod_missing'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/activerecord-3.2.9/lib/active_record/relation.rb:241:in scoping' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/activerecord-3.2.9/lib/active_record/scoping.rb:98:inwith_scope'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/activerecord-3.2.9/lib/active_record/relation.rb:241:in block in scoping' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/activerecord-3.2.9/lib/active_record/relation/delegation.rb:37:inblock in method_missing'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/activerecord-3.2.9/lib/active_record/scoping/named.rb:180:in block in scope' /home/danny/.rvm/gems/ruby-1.9.3-p362/gems/activerecord-3.2.9/lib/active_record/scoping/default.rb:41:inunscoped'
/home/danny/.rvm/gems/ruby-1.9.3-p362/gems/activerecord-3.2.9/lib/active_record/relation.rb:241:in `scoping'

-- C level backtrace information -------------------------------------------

Process finished with exit code 139

Is it possible to add summary after every site of a generated list?

Hello!
First of all - will_filter is a cool, and really powerfull tool. Great job!

But I have a question - is it possible to add after every page of a gernerated list, a summary? I'm creating now an accountant application and it will be necessary to sum up all fields column-by-column, when the pagination is activated.

Private/public flag for filters

It would be nice to have a switch for user filters with flag private/public.
So a user can save/view his own filters but also can provide public filters.

Unsupported data type decimal

I got error message

ActionView::Template::Error (Unsupported data type decimal):
    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()"}) %>

I used Ruby 1.8.7 and Rails 3.2.8.

users_controller.rb

def index
    @users = User.filter(:params => params)
end

index.haml

= will_filter_tag(@users)
= will_filter_table_tag(@users)

What's wrong in this code? Help me please.

Routing Error with the "save filter" button

After adding a filter condition and when i click on the "Save filter" button, i am getting a
Routing Error : No route matches [GET] "/null"

In the URI, my controller name is not set and is replaced by "null" like this:
http://localhost:5000/null?utf8=%E2%9C%93&wf_id=&wf_type=UserFilter&wf_dirty=false&wf_submitted=true&wf_name=&wf_model=User&wf_export_format=&wf_export_fields=&wf_match=all&wf_order=id&wf_order_type=desc&wf_per_page=30.

Thans i davanced for any help to solve this error.

Turbolinks breaks will_filter

I'm using turbolinks in my project.

When page loads using pushState, link 'Add' to add filter stops working.

I fixed it by adding following code to will_filter.js.coffee file inside my application:

document.addEventListener "page:change", initializeWillFilter

But now when I trying to select date, calendar does not work. Maybe something else also broken.

does not respect table_name_prefix from ActiveRecord

I don't know how to make a pull request, test, etc.

I had an issue where it could not find table will_filter_filters, so I modified app/models/will_filter/filter.rb with
self.table_name = "#{ActiveRecord::Base.table_name_prefix}will_filter_filters"

which worked for me.

location for custom filters

If we want to override the filter defaults, the documentation explains how to create a custom filter list such as UserFilter. However, what should this file be named and where should it be placed?

Export

Hello,

I have a model with some active record associations.

I would like to be able to change the export in order to add somme data from the association and remove some of the export data.

For example I have two models, fruits and colour. I would like the export of the class fruit to contain the colour name and not id.

How can I achieve this ?

Thanks !

(Thanks for this great module btw)

No sql select limit with custom filter

If i set a custom filter there is no limit on sql select.

@tasks = Task.filter(:params => params) 
Task Load (71.4ms)  SELECT `tasks`.* FROM `tasks` ORDER BY created_at asc LIMIT 30 OFFSET 0

@tasks = Task.filter(:params => params, :filter => :task_filter)
Task Load (2724.5ms)  SELECT `tasks`.* FROM `tasks` ORDER BY created_at asc

Do i need to explicitly set a limit in TaskFilter and how can this be done?

Routing error on submit

When any filter is added and then submitted I get the follow error:
Routing Error

No route matches [GET] "/null"

Try running rake routes for more information on available routes.


I am running
rails 3.2.19
will_filter 3.1.11

and it appears that the routes are in place...

wf_filter gives 'Called id for nil,' error

Tried to use will_filter but cannot get it to work.

Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id
Extracted source (around line #2):

1: <div style="margin:0;padding:0;display:inline">
2:   <%= hidden_field_tag(:wf_id, wf_filter.id) %>
  1. I did all steps as outlined in the doc.
  2. Since I am also using will_paginate, to avoid conflict, I added this to config/initializers/kaminari.rb

Kaminari.configure do |config|
config.page_method_name = :per_page_kaminari

if defined?(WillPaginate)
module WillPaginate
module ActiveRecord
module RelationMethods
def per(value = nil) per_page(value) end
def total_count() count end
end
end
module CollectionMethods
alias_method :num_pages, :total_pages
end
end
end
end

WillFilter breaks after calls to ActiveRecord::Relation#page in apps using will_paginate

Kaminari adds the page method to ActiveRecord::Relation. Kaminari actually makes this method name configurable but WillFilter uses the 'page' method name and doesn't support a configuration option to change it. As a result, in applications using will_paginate, WillFilter::Filter#results blows up:

    def results
      @results ||= begin
        ...

        if custom_conditions?
          recs = process_custom_conditions(recs.all)
          recs = Kaminari.paginate_array(recs)
        end  

        recs = recs.page(page).per(per_page)
        recs.wf_filter = self
        recs
      end
    end

on the call to "per" as the will_paginate page method will have been called instead of the Kaminari one.

WillFilter should make the method name configurable the same way Kaminari daes.

DEPRECATION WARNING: link_to_function in Rails 4.0.1

DEPRECATION WARNING: link_to_function is deprecated and will be removed from Rails 4.1. 
We recommend using Unobtrusive JavaScript instead. 
See http://guides.rubyonrails.org/working_with_javascript_in_rails.html#unobtrusive-javascript.

Is it possible to set a custom sort column for combined fields?

On a user model there is a method for name combining firstname and lastname.
Is it possible to provide lastname as sort column for name in view?

# model
class User < ActiveRecord::Base
  def index
    @users = User.filter(:params => params, :filter => :user_filter)
  end
  def name
    "#{firstname} #{lastname}"  
  end
  ...

# view
<%= will_filter_table_tag(@users, :columns => [
      :id,
      [:name, ...
      ...

User_id is not set on create user filters

Changing user_filters_enabled:true the user_id in insert query is set to NULL, on loading user filters the correct user_id is set.

# from log with user_filters_enabled: true
# load user filter: user_id is 1
WillFilter::Filter Load (0.4ms)  SELECT `will_filter_filters`.* FROM `will_filter_filters` WHERE (type = 'TaskFilter' and model_class_name = 'Task' and user_id = 1 )
...
# new user filter: user_id is NULL
SQL (0.7ms)  INSERT INTO `will_filter_filters` (`created_at`, `data`, `model_class_name`, `name`, `type`, `updated_at`, `user_id`) VALUES ('2012-04-16 16:41:43', '---\n:wf_type: TaskFilter\n:wf_match: all\n:wf_model: Task\n:wf_order: id\n:wf_order_type: desc\n:wf_per_page: \'30\'\n:wf_export_fields: \'\'\n:wf_export_format: :html\nwf_c0: :activity_id\nwf_o0: :is\nwf_v0_0: \'2\'\n', 'Task', 'save_test', 'TaskFilter', '2012-04-16 16:41:43', NULL)

How can i fix this?

Using non-standard primary keys

Hi everyone.

I have a table that doesn't use the standar in the definition for the primary key.

When try to use will_filter, it generate a "ORDER BY id desc" but this column doesn't exists.

In the model I defined the correst name for the primary key: self.primary_key = 'name_primary_key'

What I need to do for will_filter use this primary key and not the "id" ?

Thanks.

Advanced filter: uninitialized constant Wf

I try to use will_filter with a custom filter (like in will_filter_example) but get error "uninitialized constant Wf".

My setup:

# controller index
Task.filter(:params => params, :filter => :timeentry_filter)

# filter under /app/models/filter/task_filter.rb
class TaskFilter < Wf::Filter
...
end

# application.rb
config.autoload_paths += Dir[Rails.root.join('app', 'models', '{**}')]

Like described in readme i have setup will_filter in my Gemfile. Seems like will_filter_example will_filter is setup as plugin. Are there more setup steps necessary?

Sorry for spamming your issue queue...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.