{"action":"created","issue":{"url":"https://api.github.com/repos/activeadmin/activeadmin/issues/4073","labels_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/4073/labels{/name}","comments_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/4073/comments","events_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/4073/events","html_url":"https://github.com/activeadmin/activeadmin/issues/4073","id":100935128,"number":4073,"title":"undefined method `order_status_id_eq' for Ransack::Search<class: Order, base: Grouping <combinator: and>>:Ransack::Search  Extracted source (around line #2):","user":{"login":"mwlang","id":18387,"avatar_url":"https://avatars.githubusercontent.com/u/18387?v=3","gravatar_id":"","url":"https://api.github.com/users/mwlang","html_url":"https://github.com/mwlang","followers_url":"https://api.github.com/users/mwlang/followers","following_url":"https://api.github.com/users/mwlang/following{/other_user}","gists_url":"https://api.github.com/users/mwlang/gists{/gist_id}","starred_url":"https://api.github.com/users/mwlang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwlang/subscriptions","organizations_url":"https://api.github.com/users/mwlang/orgs","repos_url":"https://api.github.com/users/mwlang/repos","events_url":"https://api.github.com/users/mwlang/events{/privacy}","received_events_url":"https://api.github.com/users/mwlang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-08-14T05:13:25Z","updated_at":"2015-09-15T06:49:23Z","closed_at":null,"body":"Same issue as #2565. but with a twist.  Working with a Legacy database that doesn't follow Rails convention.\r\n\r\nOn Rails 4.1.12 and master for activeadmin.\r\n\r\nThe Order model:\r\n\r\n    class Order < ActiveRecord::Base\r\n      belongs_to  :order_status, foreign_key: :status\r\n    end\r\n\r\nThe AA DSL:\r\n\r\n    ActiveAdmin.register Order do\r\n      index do\r\n        selectable_column\r\n        id_column\r\n        column :order_status\r\n        actions\r\n      end\r\n\r\n      filter :order_status\r\n    end\r\n\r\nThe Error:\r\n\r\n    ActionView::Template::Error (undefined method `order_status_id_eq' for Ransack::Search<class: Order, base: Grouping <combinator: and>>:Ransack::Search):\r\n        1: insert_tag renderer_for(:index)\r\n      ransack (1.6.6) lib/ransack/search.rb:113:in `method_missing'\r\n      ransack (1.6.6) lib/ransack/helpers/form_builder.rb:10:in `value'\r\n      actionview (4.1.12) lib/action_view/helpers/tags/select.rb:16:in `block in render'\r\n      actionview (4.1.12) lib/action_view/helpers/tags/select.rb:16:in `fetch'\r\n      actionview (4.1.12) lib/action_view/helpers/tags/select.rb:16:in `render'\r\n      actionview (4.1.12) lib/action_view/helpers/form_options_helper.rb:163:in `select'\r\n      actionview (4.1.12) lib/action_view/helpers/form_options_helper.rb:777:in `select'\r\n      formtastic (3.1.3) lib/formtastic/inputs/select_input.rb:145:in `select_html'\r\n      formtastic (3.1.3) lib/formtastic/inputs/select_input.rb:140:in `block in to_html'\r\n      actionview (4.1.12) lib/action_view/helpers/capture_helper.rb:38:in `block in capture'\r\n      actionview (4.1.12) lib/action_view/helpers/capture_helper.rb:202:in `with_output_buffer'\r\n      actionview (4.1.12) lib/action_view/helpers/capture_helper.rb:38:in `capture'\r\n      /Users/mwlang/.rvm/gems/ruby-2.1.5/bundler/gems/activeadmin-3254f53b4b35/lib/active_admin/inputs/filters/base.rb:12:in `input_wrapping'\r\n      formtastic (3.1.3) lib/formtastic/inputs/select_input.rb:138:in `to_html'\r\n      formtastic (3.1.3) lib/formtastic/helpers/input_helper.rb:240:in `input'\r\n      /Users/mwlang/.rvm/gems/ruby-2.1.5/bundler/gems/activeadmin-3254f53b4b35/lib/active_admin/filters/forms.rb:14:in `filter'\r\n      /Users/mwlang/.rvm/gems/ruby-2.1.5/bundler/gems/activeadmin-3254f53b4b35/lib/active_admin/filters/forms.rb:62:in `block (2 levels) in active_admin_filters_form_for'\r\n      /Users/mwlang/.rvm/gems/ruby-2.1.5/bundler/gems/activeadmin-3254f53b4b35/lib/active_admin/filters/forms.rb:58:in `each'\r\n      /Users/mwlang/.rvm/gems/ruby-2.1.5/bundler/gems/activeadmin-3254f53b4b35/lib/active_admin/filters/forms.rb:58:in `block in active_admin_filters_form_for'\r\n      actionview (4.1.12) lib/action_view/helpers/capture_helper.rb:38:in `block in capture'\r\n      actionview (4.1.12) lib/action_view/helpers/capture_helper.rb:202:in `with_output_buffer'\r\n      actionview (4.1.12) lib/action_view/helpers/capture_helper.rb:38:in `capture'\r\n      actionview (4.1.12) lib/action_view/helpers/form_helper.rb:434:in `form_for'\r\n      /Users/mwlang/.rvm/gems/ruby-2.1.5/bundler/gems/activeadmin-3254f53b4b35/lib/active_admin/filters/forms.rb:57:in `active_admin_filters_form_for'\r\n      arbre (1.0.3) lib/arbre/element.rb:180:in `method_missing'\r\n      /Users/mwlang/.rvm/gems/ruby-2.1.5/bundler/gems/activeadmin-3254f53b4b35/lib/active_admin/filters/resource_extension.rb:151:in `block in filters_sidebar_section'\r\n      /Users/mwlang/.rvm/gems/ruby-2.1.5/bundler/gems/activeadmin-3254f53b4b35/lib/active_admin/views/components/sidebar_section.rb:25:in `instance_exec'\r\n      /Users/mwlang/.rvm/gems/ruby-2.1.5/bundler/gems/activeadmin-3254f53b4b35/lib/active_admin/views/components/sidebar_section.rb:25:in `build_sidebar_content'\r\n      /Users/mwlang/.rvm/gems/ruby-2.1.5/bundler/gems/activeadmin-3254f53b4b35/lib/active_admin/views/components/sidebar_section.rb:13:in `build'\r\n      arbre (1.0.3) lib/arbre/element/builder_methods.rb:30:in `block in build_tag'\r\n      arbre (1.0.3) lib/arbre/context.rb:92:in `with_current_arbre_element'\r\n      arbre (1.0.3) lib/arbre/element/builder_methods.rb:49:in `with_current_arbre_element'\r\n      arbre (1.0.3) lib/arbre/element/builder_methods.rb:26:in `build_tag'\r\n      arbre (1.0.3) lib/arbre/element/builder_methods.rb:39:in `insert_tag'\r\n      arbre (1.0.3) lib/arbre/element/builder_methods.rb:14:in `sidebar_section'\r\n      /Users/mwlang/.rvm/gems/ruby-2.1.5/bundler/gems/activeadmin-3254f53b4b35/lib/active_admin/views/pages/base.rb:130:in `block (2 levels) in build_sidebar'\r\n      /Users/mwlang/.rvm/gems/ruby-2.1.5/bundler/gems/activeadmin-3254f53b4b35/lib/active_admin/views/pages/base.rb:129:in `collect'\r\n      /Users/mwlang/.rvm/gems/ruby-2.1.5/bundler/gems/activeadmin-3254f53b4b35/lib/active_admin/views/pages/base.rb:129:in `block in build_sidebar'\r\n      arbre (1.0.3) lib/arbre/element/builder_methods.rb:31:in `block in build_tag'\r\n      arbre (1.0.3) lib/arbre/context.rb:92:in `with_current_arbre_element'\r\n      arbre (1.0.3) lib/arbre/element/builder_methods.rb:49:in `with_current_arbre_element'\r\n      arbre (1.0.3) lib/arbre/element/builder_methods.rb:26:in `build_tag'\r\n      arbre (1.0.3) lib/arbre/element/builder_methods.rb:39:in `insert_tag'\r\n      arbre (1.0.3) lib/arbre/element/builder_methods.rb:14:in `div'\r\n      /Users/mwlang/.rvm/gems/ruby-2.1.5/bundler/gems/activeadmin-3254f53b4b35/lib/active_admin/views/pages/base.rb:128:in `build_sidebar'\r\n      /Users/mwlang/.rvm/gems/ruby-2.1.5/bundler/gems/activeadmin-3254f53b4b35/lib/active_admin/views/pages/base.rb:76:in `block in build_page_content'\r\n      arbre (1.0.3) lib/arbre/element/builder_methods.rb:31:in `block in build_tag'\r\n      arbre (1.0.3) lib/arbre/context.rb:92:in `with_current_arbre_element'\r\n      arbre (1.0.3) lib/arbre/element/builder_methods.rb:49:in `with_current_arbre_element'\r\n      arbre (1.0.3) lib/arbre/element/builder_methods.rb:26:in `build_tag'\r\n      arbre (1.0.3) lib/arbre/element/builder_methods.rb:39:in `insert_tag'\r\n      arbre (1.0.3) lib/arbre/element/builder_methods.rb:14:in `div'\r\n      /Users/mwlang/.rvm/gems/ruby-2.1.5/bundler/gems/activeadmin-3254f53b4b35/lib/active_admin/views/pages/base.rb:74:in `build_page_content'\r\n      /Users/mwlang/.rvm/gems/ruby-2.1.5/bundler/gems/activeadmin-3254f53b4b35/lib/active_admin/views/pages/base.rb:52:in `block (2 levels) in build_page'\r\n      arbre (1.0.3) lib/arbre/element/builder_methods.rb:31:in `block in build_tag'\r\n      arbre (1.0.3) lib/arbre/context.rb:92:in `with_current_arbre_element'\r\n      arbre (1.0.3) lib/arbre/element/builder_methods.rb:49:in `with_current_arbre_element'\r\n      arbre (1.0.3) lib/arbre/element/builder_methods.rb:26:in `build_tag'\r\n      arbre (1.0.3) lib/arbre/element/builder_methods.rb:39:in `insert_tag'\r\n      arbre (1.0.3) lib/arbre/element/builder_methods.rb:14:in `div'\r\n      /Users/mwlang/.rvm/gems/ruby-2.1.5/bundler/gems/activeadmin-3254f53b4b35/lib/active_admin/views/pages/base.rb:48:in `block in build_page'\r\n      arbre (1.0.3) lib/arbre/context.rb:92:in `with_current_arbre_element'\r\n      arbre (1.0.3) lib/arbre/element/builder_methods.rb:49:in `with_current_arbre_element'\r\n      /Users/mwlang/.rvm/gems/ruby-2.1.5/bundler/gems/activeadmin-3254f53b4b35/lib/active_admin/views/pages/base.rb:47:in `build_page'\r\n      /Users/mwlang/.rvm/gems/ruby-2.1.5/bundler/gems/activeadmin-3254f53b4b35/lib/active_admin/views/pages/base.rb:10:in `build'\r\n      arbre (1.0.3) lib/arbre/element/builder_methods.rb:30:in `block in build_tag'\r\n      arbre (1.0.3) lib/arbre/context.rb:92:in `with_current_arbre_element'\r\n      arbre (1.0.3) lib/arbre/element/builder_methods.rb:26:in `build_tag'\r\n      arbre (1.0.3) lib/arbre/element/builder_methods.rb:39:in `insert_tag'\r\n      /Users/mwlang/.rvm/gems/ruby-2.1.5/bundler/gems/activeadmin-3254f53b4b35/app/views/active_admin/resource/index.html.arb:2:in `block in ___sers_mwlang__rvm_gems_ruby_______bundler_gems_activeadmin_____f__b_b___app_views_active_admin_resource_index_html_arb__2381377246843545787_70349303375080'\r\n      arbre (1.0.3) lib/arbre/context.rb:45:in `instance_eval'\r\n      arbre (1.0.3) lib/arbre/context.rb:45:in `initialize'\r\n      /Users/mwlang/.rvm/gems/ruby-2.1.5/bundler/gems/activeadmin-3254f53b4b35/app/views/active_admin/resource/index.html.arb:1:in `new'\r\n      /Users/mwlang/.rvm/gems/ruby-2.1.5/bundler/gems/activeadmin-3254f53b4b35/app/views/active_admin/resource/index.html.arb:1:in `___sers_mwlang__rvm_gems_ruby_______bundler_gems_activeadmin_____f__b_b___app_views_active_admin_resource_index_html_arb__2381377246843545787_70349303375080'\r\n      actionview (4.1.12) lib/action_view/template.rb:145:in `block in render'\r\n      activesupport (4.1.12) lib/active_support/notifications.rb:161:in `instrument'\r\n      actionview (4.1.12) lib/action_view/template.rb:339:in `instrument'\r\n      actionview (4.1.12) lib/action_view/template.rb:143:in `render'\r\n      actionview (4.1.12) lib/action_view/renderer/template_renderer.rb:55:in `block (2 levels) in render_template'\r\n      actionview (4.1.12) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'\r\n      activesupport (4.1.12) lib/active_support/notifications.rb:159:in `block in instrument'\r\n      activesupport (4.1.12) lib/active_support/notifications/instrumenter.rb:20:in `instrument'\r\n      activesupport (4.1.12) lib/active_support/notifications.rb:159:in `instrument'\r\n      actionview (4.1.12) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'\r\n      actionview (4.1.12) lib/action_view/renderer/template_renderer.rb:54:in `block in render_template'\r\n      actionview (4.1.12) lib/action_view/renderer/template_renderer.rb:62:in `render_with_layout'\r\n      actionview (4.1.12) lib/action_view/renderer/template_renderer.rb:53:in `render_template'\r\n      actionview (4.1.12) lib/action_view/renderer/template_renderer.rb:17:in `render'\r\n      actionview (4.1.12) lib/action_view/renderer/renderer.rb:42:in `render_template'\r\n      actionview (4.1.12) lib/action_view/renderer/renderer.rb:23:in `render'\r\n      actionview (4.1.12) lib/action_view/rendering.rb:99:in `_render_template'\r\n      actionpack (4.1.12) lib/action_controller/metal/streaming.rb:217:in `_render_template'\r\n      actionview (4.1.12) lib/action_view/rendering.rb:82:in `render_to_body'\r\n      actionpack (4.1.12) lib/action_controller/metal/rendering.rb:32:in `render_to_body'\r\n      actionpack (4.1.12) lib/action_controller/metal/renderers.rb:32:in `render_to_body'\r\n      actionpack (4.1.12) lib/abstract_controller/rendering.rb:25:in `render'\r\n      actionpack (4.1.12) lib/action_controller/metal/rendering.rb:16:in `render'\r\n      actionpack (4.1.12) lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render'\r\n      activesupport (4.1.12) lib/active_support/core_ext/benchmark.rb:12:in `block in ms'\r\n      /Users/mwlang/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/benchmark.rb:294:in `realtime'\r\n      activesupport (4.1.12) lib/active_support/core_ext/benchmark.rb:12:in `ms'\r\n      actionpack (4.1.12) lib/action_controller/metal/instrumentation.rb:44:in `block in render'\r\n      actionpack (4.1.12) lib/action_controller/metal/instrumentation.rb:87:in `cleanup_view_runtime'\r\n      activerecord (4.1.12) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'\r\n      actionpack (4.1.12) lib/action_controller/metal/instrumentation.rb:43:in `render'\r\n      actionpack (4.1.12) lib/action_controller/metal/implicit_render.rb:10:in `default_render'\r\n      actionpack (4.1.12) lib/action_controller/metal/responder.rb:238:in `default_render'\r\n      actionpack (4.1.12) lib/action_controller/metal/responder.rb:165:in `to_html'\r\n      responders (1.1.2) lib/responders/flash_responder.rb:107:in `to_html'\r\n      actionpack (4.1.12) lib/action_controller/metal/responder.rb:158:in `respond'\r\n      actionpack (4.1.12) lib/action_controller/metal/responder.rb:151:in `call'\r\n      actionpack (4.1.12) lib/action_controller/metal/mime_responds.rb:400:in `respond_with'\r\n      inherited_resources (1.6.0) lib/inherited_resources/actions.rb:7:in `index'\r\n      /Users/mwlang/.rvm/gems/ruby-2.1.5/bundler/gems/activeadmin-3254f53b4b35/lib/active_admin/resource_controller/streaming.rb:12:in `index'\r\n      actionpack (4.1.12) lib/action_controller/metal/implicit_render.rb:4:in `send_action'\r\n      actionpack (4.1.12) lib/abstract_controller/base.rb:189:in `process_action'\r\n      actionpack (4.1.12) lib/action_controller/metal/rendering.rb:10:in `process_action'\r\n      actionpack (4.1.12) lib/abstract_controller/callbacks.rb:20:in `block in process_action'\r\n      activesupport (4.1.12) lib/active_support/callbacks.rb:113:in `call'\r\n      activesupport (4.1.12) lib/active_support/callbacks.rb:113:in `call'\r\n      activesupport (4.1.12) lib/active_support/callbacks.rb:552:in `block (2 levels) in compile'\r\n      activesupport (4.1.12) lib/active_support/callbacks.rb:502:in `call'\r\n      activesupport (4.1.12) lib/active_support/callbacks.rb:502:in `call'\r\n      activesupport (4.1.12) lib/active_support/callbacks.rb:86:in `run_callbacks'\r\n      actionpack (4.1.12) lib/abstract_controller/callbacks.rb:19:in `process_action'\r\n      actionpack (4.1.12) lib/action_controller/metal/rescue.rb:29:in `process_action'\r\n      actionpack (4.1.12) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'\r\n      activesupport (4.1.12) lib/active_support/notifications.rb:159:in `block in instrument'\r\n      activesupport (4.1.12) lib/active_support/notifications/instrumenter.rb:20:in `instrument'\r\n      activesupport (4.1.12) lib/active_support/notifications.rb:159:in `instrument'\r\n      actionpack (4.1.12) lib/action_controller/metal/instrumentation.rb:30:in `process_action'\r\n      actionpack (4.1.12) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'\r\n      activerecord (4.1.12) lib/active_record/railties/controller_runtime.rb:18:in `process_action'\r\n      actionpack (4.1.12) lib/abstract_controller/base.rb:136:in `process'\r\n      actionview (4.1.12) lib/action_view/rendering.rb:30:in `process'\r\n      actionpack (4.1.12) lib/action_controller/metal.rb:196:in `dispatch'\r\n      actionpack (4.1.12) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'\r\n      actionpack (4.1.12) lib/action_controller/metal.rb:232:in `block in action'\r\n      actionpack (4.1.12) lib/action_dispatch/routing/route_set.rb:82:in `call'\r\n      actionpack (4.1.12) lib/action_dispatch/routing/route_set.rb:82:in `dispatch'\r\n      actionpack (4.1.12) lib/action_dispatch/routing/route_set.rb:50:in `call'\r\n      actionpack (4.1.12) lib/action_dispatch/journey/router.rb:73:in `block in call'\r\n      actionpack (4.1.12) lib/action_dispatch/journey/router.rb:59:in `each'\r\n      actionpack (4.1.12) lib/action_dispatch/journey/router.rb:59:in `call'\r\n      actionpack (4.1.12) lib/action_dispatch/routing/route_set.rb:692:in `call'\r\n      warden (1.2.3) lib/warden/manager.rb:35:in `block in call'\r\n      warden (1.2.3) lib/warden/manager.rb:34:in `catch'\r\n      warden (1.2.3) lib/warden/manager.rb:34:in `call'\r\n      rack (1.5.5) lib/rack/etag.rb:23:in `call'\r\n      rack (1.5.5) lib/rack/conditionalget.rb:25:in `call'\r\n      rack (1.5.5) lib/rack/head.rb:11:in `call'\r\n      actionpack (4.1.12) lib/action_dispatch/middleware/params_parser.rb:27:in `call'\r\n      actionpack (4.1.12) lib/action_dispatch/middleware/flash.rb:254:in `call'\r\n      rack (1.5.5) lib/rack/session/abstract/id.rb:225:in `context'\r\n      rack (1.5.5) lib/rack/session/abstract/id.rb:220:in `call'\r\n      actionpack (4.1.12) lib/action_dispatch/middleware/cookies.rb:562:in `call'\r\n      activerecord (4.1.12) lib/active_record/query_cache.rb:36:in `call'\r\n      activerecord (4.1.12) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call'\r\n      activerecord (4.1.12) lib/active_record/migration.rb:380:in `call'\r\n      actionpack (4.1.12) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'\r\n      activesupport (4.1.12) lib/active_support/callbacks.rb:82:in `run_callbacks'\r\n      actionpack (4.1.12) lib/action_dispatch/middleware/callbacks.rb:27:in `call'\r\n      actionpack (4.1.12) lib/action_dispatch/middleware/reloader.rb:73:in `call'\r\n      actionpack (4.1.12) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'\r\n      actionpack (4.1.12) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'\r\n      actionpack (4.1.12) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'\r\n      railties (4.1.12) lib/rails/rack/logger.rb:38:in `call_app'\r\n      railties (4.1.12) lib/rails/rack/logger.rb:20:in `block in call'\r\n      activesupport (4.1.12) lib/active_support/tagged_logging.rb:68:in `block in tagged'\r\n      activesupport (4.1.12) lib/active_support/tagged_logging.rb:26:in `tagged'\r\n      activesupport (4.1.12) lib/active_support/tagged_logging.rb:68:in `tagged'\r\n      railties (4.1.12) lib/rails/rack/logger.rb:20:in `call'\r\n      actionpack (4.1.12) lib/action_dispatch/middleware/request_id.rb:21:in `call'\r\n      rack (1.5.5) lib/rack/methodoverride.rb:21:in `call'\r\n      rack (1.5.5) lib/rack/runtime.rb:17:in `call'\r\n      activesupport (4.1.12) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'\r\n      rack (1.5.5) lib/rack/lock.rb:17:in `call'\r\n      actionpack (4.1.12) lib/action_dispatch/middleware/static.rb:84:in `call'\r\n      rack (1.5.5) lib/rack/sendfile.rb:112:in `call'\r\n      railties (4.1.12) lib/rails/engine.rb:514:in `call'\r\n      railties (4.1.12) lib/rails/application.rb:144:in `call'\r\n      rack (1.5.5) lib/rack/content_length.rb:14:in `call'\r\n      thin (1.6.3) lib/thin/connection.rb:86:in `block in pre_process'\r\n      thin (1.6.3) lib/thin/connection.rb:84:in `catch'\r\n      thin (1.6.3) lib/thin/connection.rb:84:in `pre_process'\r\n      thin (1.6.3) lib/thin/connection.rb:53:in `process'\r\n      thin (1.6.3) lib/thin/connection.rb:39:in `receive_data'\r\n      eventmachine (1.0.8) lib/eventmachine.rb:193:in `run_machine'\r\n      eventmachine (1.0.8) lib/eventmachine.rb:193:in `run'\r\n      thin (1.6.3) lib/thin/backends/base.rb:73:in `start'\r\n      thin (1.6.3) lib/thin/server.rb:162:in `start'\r\n      rack (1.5.5) lib/rack/handler/thin.rb:16:in `run'\r\n      rack (1.5.5) lib/rack/server.rb:264:in `start'\r\n      railties (4.1.12) lib/rails/commands/server.rb:69:in `start'\r\n      railties (4.1.12) lib/rails/commands/commands_tasks.rb:81:in `block in server'\r\n      railties (4.1.12) lib/rails/commands/commands_tasks.rb:76:in `tap'\r\n      railties (4.1.12) lib/rails/commands/commands_tasks.rb:76:in `server'\r\n      railties (4.1.12) lib/rails/commands/commands_tasks.rb:40:in `run_command!'\r\n      railties (4.1.12) lib/rails/commands.rb:17:in `<top (required)>'\r\n      bin/rails:8:in `require'\r\n      bin/rails:8:in `<top (required)>'\r\n      spring (1.3.6) lib/spring/client/rails.rb:28:in `load'\r\n      spring (1.3.6) lib/spring/client/rails.rb:28:in `call'\r\n      spring (1.3.6) lib/spring/client/command.rb:7:in `call'\r\n      spring (1.3.6) lib/spring/client.rb:26:in `run'\r\n      spring (1.3.6) bin/spring:48:in `<top (required)>'\r\n      spring (1.3.6) lib/spring/binstub.rb:11:in `load'\r\n      spring (1.3.6) lib/spring/binstub.rb:11:in `<top (required)>'\r\n      bin/spring:13:in `require'\r\n      bin/spring:13:in `<top (required)>'\r\n      bin/rails:3:in `load'\r\n      bin/rails:3:in `<main>'\r\n\r\n\r\n      Rendered /Users/mwlang/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.12/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.0ms)\r\n      Rendered /Users/mwlang/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.12/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.2ms)\r\n      Rendered /Users/mwlang/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.12/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (11.4ms)\r\n"},"comment":{"url":"https://api.github.com/repos/activeadmin/activeadmin/issues/comments/140296569","html_url":"https://github.com/activeadmin/activeadmin/issues/4073#issuecomment-140296569","issue_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/4073","id":140296569,"user":{"login":"timoschilling","id":165599,"avatar_url":"https://avatars.githubusercontent.com/u/165599?v=3","gravatar_id":"","url":"https://api.github.com/users/timoschilling","html_url":"https://github.com/timoschilling","followers_url":"https://api.github.com/users/timoschilling/followers","following_url":"https://api.github.com/users/timoschilling/following{/other_user}","gists_url":"https://api.github.com/users/timoschilling/gists{/gist_id}","starred_url":"https://api.github.com/users/timoschilling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timoschilling/subscriptions","organizations_url":"https://api.github.com/users/timoschilling/orgs","repos_url":"https://api.github.com/users/timoschilling/repos","events_url":"https://api.github.com/users/timoschilling/events{/privacy}","received_events_url":"https://api.github.com/users/timoschilling/received_events","type":"User","site_admin":false},"created_at":"2015-09-15T06:49:23Z","updated_at":"2015-09-15T06:49:23Z","body":"I don't know how to build a ransack query for your case\r\nSomething like this:\r\n```ruby\r\nOrders.search(status: \"...\")\r\n```\r\nOr what does the standard active record query looks like, if you search the orders for a order_status\r\n?"}}