Last active
August 29, 2015 14:20
-
-
Save sdilshod/10355be872a366ef225b to your computer and use it in GitHub Desktop.
error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding: utf-8 | |
class Category < ActiveRecord::Base | |
has_many :favorite_users, :through => :category_users, :source => :user, :conditions => {:category_users => {:connection_type => :favorite}} | |
has_many :responsible_users, :through => :category_users, :source => :user, :conditions => {:category_users => {:connection_type => :responsible}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CategoryUser < ActiveRecord::Base | |
belongs_to :category | |
belongs_to :user | |
#attr_accessible :connection_type, :category_id | |
extend Enumerize | |
enumerize :connection_type, :in => [:favorite, :responsible], :predicates => true | |
validates_presence_of :connection_type | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT "users".* FROM "users" WHERE "category_users"."connection_type" = "category_users"."favorite" | |
Rendered /home/sdilshod/.rvm/gems/ruby-1.9.3-p547@saturn/gems/activeadmin-0.6.6/app/views/active_admin/resource/index.html.arb (3724.5ms) | |
Completed 500 Internal Server Error in 4157ms | |
ActiveRecord::StatementInvalid - PG::Error: ERROR: missing FROM-clause entry for table "category_users" | |
LINE 1: SELECT "users".* FROM "users" WHERE "category_users"."conne... | |
^ | |
: SELECT "users".* FROM "users" WHERE "category_users"."connection_type" = "category_users"."favorite": | |
(gem) activerecord-3.2.12/lib/active_record/connection_adapters/postgresql_adapter.rb:1153:in `async_exec' | |
(gem) activerecord-3.2.12/lib/active_record/connection_adapters/postgresql_adapter.rb:1153:in `exec_no_cache' | |
(gem) activerecord-3.2.12/lib/active_record/connection_adapters/postgresql_adapter.rb:662:in `block in exec_query' | |
(gem) activerecord-3.2.12/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `block in log' | |
(gem) activesupport-3.2.12/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
(gem) activerecord-3.2.12/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log' | |
(gem) activerecord-3.2.12/lib/active_record/connection_adapters/postgresql_adapter.rb:661:in `exec_query' | |
(gem) activerecord-3.2.12/lib/active_record/connection_adapters/postgresql_adapter.rb:1248:in `select' | |
(gem) activerecord-3.2.12/lib/active_record/connection_adapters/abstract/database_statements.rb:18:in `select_all' | |
(gem) activerecord-3.2.12/lib/active_record/connection_adapters/abstract/query_cache.rb:61:in `block in select_all' | |
(gem) activerecord-3.2.12/lib/active_record/connection_adapters/abstract/query_cache.rb:75:in `cache_sql' | |
(gem) activerecord-3.2.12/lib/active_record/connection_adapters/abstract/query_cache.rb:61:in `select_all' | |
(gem) activerecord-3.2.12/lib/active_record/querying.rb:38:in `block in find_by_sql' | |
(gem) activerecord-3.2.12/lib/active_record/explain.rb:40:in `logging_query_plan' | |
(gem) activerecord-3.2.12/lib/active_record/querying.rb:37:in `find_by_sql' | |
(gem) activerecord-3.2.12/lib/active_record/relation.rb:171:in `exec_queries' | |
(gem) activerecord-3.2.12/lib/active_record/relation.rb:160:in `block in to_a' | |
(gem) activerecord-3.2.12/lib/active_record/explain.rb:33:in `logging_query_plan' | |
(gem) activerecord-3.2.12/lib/active_record/relation.rb:159:in `to_a' | |
(gem) activerecord-3.2.12/lib/active_record/relation/delegation.rb:6:in `map' | |
(gem) formtastic-2.2.1/lib/formtastic/inputs/base/collections.rb:58:in `collection' | |
(gem) activeadmin-0.6.6/lib/active_admin/inputs/filter_select_input.rb:40:in `collection' | |
(gem) formtastic-2.2.1/lib/formtastic/inputs/select_input.rb:154:in `select_html' | |
(gem) formtastic-2.2.1/lib/formtastic/inputs/select_input.rb:149:in `block in to_html' | |
(gem) actionpack-3.2.12/lib/action_view/helpers/capture_helper.rb:40:in `block in capture' | |
(gem) actionpack-3.2.12/lib/action_view/helpers/capture_helper.rb:187:in `with_output_buffer' | |
(gem) haml-3.1.7/lib/haml/helpers/xss_mods.rb:109:in `with_output_buffer_with_haml_xss' | |
(gem) actionpack-3.2.12/lib/action_view/helpers/capture_helper.rb:40:in `capture' | |
(gem) haml-3.1.7/lib/haml/helpers/action_view_mods.rb:105:in `capture_with_haml' | |
(gem) activeadmin-0.6.6/lib/active_admin/inputs/filter_base.rb:11:in `input_wrapping' | |
(gem) formtastic-2.2.1/lib/formtastic/inputs/select_input.rb:146:in `to_html' | |
(gem) formtastic-2.2.1/lib/formtastic/helpers/input_helper.rb:240:in `input' | |
(gem) enumerize-0.5.1/lib/enumerize/hooks/formtastic.rb:23:in `input_with_enumerize' | |
(gem) activeadmin-0.6.6/lib/active_admin/form_builder.rb:19:in `block in input' | |
(gem) activeadmin-0.6.6/lib/active_admin/form_builder.rb:177:in `with_new_form_buffer' | |
(gem) activeadmin-0.6.6/lib/active_admin/form_builder.rb:19:in `input' | |
(gem) activeadmin-0.6.6/lib/active_admin/filters/forms.rb:16:in `filter' | |
(gem) activeadmin-0.6.6/lib/active_admin/filters/forms.rb:72:in `block (2 levels) in active_admin_filters_form_for' | |
(gem) activeadmin-0.6.6/lib/active_admin/filters/forms.rb:67:in `each' | |
(gem) activeadmin-0.6.6/lib/active_admin/filters/forms.rb:67:in `block in active_admin_filters_form_for' | |
(gem) actionpack-3.2.12/lib/action_view/helpers/capture_helper.rb:40:in `block in capture' | |
(gem) actionpack-3.2.12/lib/action_view/helpers/capture_helper.rb:187:in `with_output_buffer' | |
(gem) haml-3.1.7/lib/haml/helpers/xss_mods.rb:109:in `with_output_buffer_with_haml_xss' | |
(gem) actionpack-3.2.12/lib/action_view/helpers/capture_helper.rb:40:in `capture' | |
(gem) haml-3.1.7/lib/haml/helpers/action_view_mods.rb:105:in `capture_with_haml' | |
(gem) actionpack-3.2.12/lib/action_view/helpers/form_helper.rb:607:in `fields_for' | |
(gem) actionpack-3.2.12/lib/action_view/helpers/form_helper.rb:378:in `form_for' | |
(gem) haml-3.1.7/lib/haml/helpers/action_view_mods.rb:183:in `form_for_with_haml' | |
(gem) haml-3.1.7/lib/haml/helpers/xss_mods.rb:132:in `form_for_with_haml_xss' | |
(gem) activeadmin-0.6.6/lib/active_admin/filters/forms.rb:66:in `active_admin_filters_form_for' | |
(gem) arbre-1.0.3/lib/arbre/element.rb:180:in `method_missing' | |
(gem) activeadmin-0.6.6/lib/active_admin/filters/resource_extension.rb:127:in `block in filters_sidebar_section' | |
(gem) activeadmin-0.6.6/lib/active_admin/views/components/sidebar_section.rb:19:in `instance_eval' | |
(gem) activeadmin-0.6.6/lib/active_admin/views/components/sidebar_section.rb:19:in `build_sidebar_content' | |
(gem) activeadmin-0.6.6/lib/active_admin/views/components/sidebar_section.rb:12:in `build' | |
(gem) arbre-1.0.3/lib/arbre/element/builder_methods.rb:30:in `block in build_tag' | |
(gem) arbre-1.0.3/lib/arbre/context.rb:92:in `with_current_arbre_element' | |
(gem) arbre-1.0.3/lib/arbre/element/builder_methods.rb:49:in `with_current_arbre_element' | |
(gem) arbre-1.0.3/lib/arbre/element/builder_methods.rb:26:in `build_tag' | |
(gem) arbre-1.0.3/lib/arbre/element/builder_methods.rb:39:in `insert_tag' | |
(gem) arbre-1.0.3/lib/arbre/element/builder_methods.rb:18:in `sidebar_section' | |
(gem) activeadmin-0.6.6/lib/active_admin/views/pages/base.rb:122:in `block (2 levels) in build_sidebar' | |
(gem) activeadmin-0.6.6/lib/active_admin/views/pages/base.rb:121:in `collect' | |
(gem) activeadmin-0.6.6/lib/active_admin/views/pages/base.rb:121:in `block in build_sidebar' | |
(gem) arbre-1.0.3/lib/arbre/element/builder_methods.rb:31:in `block in build_tag' | |
(gem) arbre-1.0.3/lib/arbre/context.rb:92:in `with_current_arbre_element' | |
(gem) arbre-1.0.3/lib/arbre/element/builder_methods.rb:49:in `with_current_arbre_element' | |
(gem) arbre-1.0.3/lib/arbre/element/builder_methods.rb:26:in `build_tag' | |
(gem) arbre-1.0.3/lib/arbre/element/builder_methods.rb:39:in `insert_tag' | |
(gem) arbre-1.0.3/lib/arbre/element/builder_methods.rb:18:in `div' | |
(gem) activeadmin-0.6.6/lib/active_admin/views/pages/base.rb:120:in `build_sidebar' | |
(gem) activeadmin-0.6.6/lib/active_admin/views/pages/base.rb:66:in `block in build_page_content' | |
(gem) arbre-1.0.3/lib/arbre/element/builder_methods.rb:31:in `block in build_tag' | |
(gem) arbre-1.0.3/lib/arbre/context.rb:92:in `with_current_arbre_element' | |
(gem) arbre-1.0.3/lib/arbre/element/builder_methods.rb:49:in `with_current_arbre_element' | |
(gem) arbre-1.0.3/lib/arbre/element/builder_methods.rb:26:in `build_tag' | |
(gem) arbre-1.0.3/lib/arbre/element/builder_methods.rb:39:in `insert_tag' | |
(gem) arbre-1.0.3/lib/arbre/element/builder_methods.rb:18:in `div' | |
(gem) activeadmin-0.6.6/lib/active_admin/views/pages/base.rb:64:in `build_page_content' | |
(gem) activeadmin-0.6.6/lib/active_admin/views/pages/base.rb:47:in `block (2 levels) in build_page' | |
(gem) arbre-1.0.3/lib/arbre/element/builder_methods.rb:31:in `block in build_tag' | |
(gem) arbre-1.0.3/lib/arbre/context.rb:92:in `with_current_arbre_element' | |
(gem) arbre-1.0.3/lib/arbre/element/builder_methods.rb:49:in `with_current_arbre_element' | |
(gem) arbre-1.0.3/lib/arbre/element/builder_methods.rb:26:in `build_tag' | |
(gem) arbre-1.0.3/lib/arbre/element/builder_methods.rb:39:in `insert_tag' | |
(gem) arbre-1.0.3/lib/arbre/element/builder_methods.rb:18:in `div' | |
(gem) activeadmin-0.6.6/lib/active_admin/views/pages/base.rb:44:in `block in build_page' | |
(gem) arbre-1.0.3/lib/arbre/context.rb:92:in `with_current_arbre_element' | |
(gem) arbre-1.0.3/lib/arbre/element/builder_methods.rb:49:in `with_current_arbre_element' | |
(gem) activeadmin-0.6.6/lib/active_admin/views/pages/base.rb:43:in `build_page' | |
(gem) activeadmin-0.6.6/lib/active_admin/views/pages/base.rb:10:in `build' | |
(gem) arbre-1.0.3/lib/arbre/element/builder_methods.rb:30:in `block in build_tag' | |
(gem) arbre-1.0.3/lib/arbre/context.rb:92:in `with_current_arbre_element' | |
(gem) arbre-1.0.3/lib/arbre/element/builder_methods.rb:26:in `build_tag' | |
(gem) arbre-1.0.3/lib/arbre/element/builder_methods.rb:39:in `insert_tag' | |
(gem) activeadmin-0.6.6/app/views/active_admin/resource/index.html.arb:2:in `block in __home_sdilshod__rvm_gems_ruby_______p____saturn_gems_activeadmin_______app_views_active_admin_resource_index_html_arb__4402033891573301361_56204560' | |
(gem) arbre-1.0.3/lib/arbre/context.rb:45:in `instance_eval' | |
(gem) arbre-1.0.3/lib/arbre/context.rb:45:in `initialize' | |
(gem) activeadmin-0.6.6/app/views/active_admin/resource/index.html.arb:1:in `new' | |
(gem) activeadmin-0.6.6/app/views/active_admin/resource/index.html.arb:1:in `__home_sdilshod__rvm_gems_ruby_______p____saturn_gems_activeadmin_______app_views_active_admin_resource_index_html_arb__4402033891573301361_56204560' | |
(gem) actionpack-3.2.12/lib/action_view/template.rb:145:in `block in render' | |
(gem) activesupport-3.2.12/lib/active_support/notifications.rb:125:in `instrument' | |
(gem) actionpack-3.2.12/lib/action_view/template.rb:143:in `render' | |
(gem) actionpack-3.2.12/lib/action_view/renderer/template_renderer.rb:47:in `block (2 levels) in render_template' | |
(gem) actionpack-3.2.12/lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' | |
(gem) activesupport-3.2.12/lib/active_support/notifications.rb:123:in `block in instrument' | |
(gem) activesupport-3.2.12/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
(gem) activesupport-3.2.12/lib/active_support/notifications.rb:123:in `instrument' | |
(gem) actionpack-3.2.12/lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' | |
(gem) actionpack-3.2.12/lib/action_view/renderer/template_renderer.rb:46:in `block in render_template' | |
(gem) actionpack-3.2.12/lib/action_view/renderer/template_renderer.rb:54:in `render_with_layout' | |
(gem) actionpack-3.2.12/lib/action_view/renderer/template_renderer.rb:45:in `render_template' | |
(gem) actionpack-3.2.12/lib/action_view/renderer/template_renderer.rb:18:in `render' | |
(gem) actionpack-3.2.12/lib/action_view/renderer/renderer.rb:36:in `render_template' | |
(gem) actionpack-3.2.12/lib/action_view/renderer/renderer.rb:17:in `render' | |
(gem) actionpack-3.2.12/lib/abstract_controller/rendering.rb:110:in `_render_template' | |
(gem) actionpack-3.2.12/lib/action_controller/metal/streaming.rb:225:in `_render_template' | |
(gem) actionpack-3.2.12/lib/abstract_controller/rendering.rb:103:in `render_to_body' | |
(gem) actionpack-3.2.12/lib/action_controller/metal/renderers.rb:28:in `render_to_body' | |
(gem) actionpack-3.2.12/lib/action_controller/metal/compatibility.rb:50:in `render_to_body' | |
(gem) actionpack-3.2.12/lib/abstract_controller/rendering.rb:88:in `render' | |
(gem) actionpack-3.2.12/lib/action_controller/metal/rendering.rb:16:in `render' | |
(gem) actionpack-3.2.12/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render' | |
(gem) activesupport-3.2.12/lib/active_support/core_ext/benchmark.rb:5:in `block in ms' | |
/home/sdilshod/.rvm/rubies/ruby-1.9.3-p547/lib/ruby/1.9.1/benchmark.rb:295:in `realtime' | |
(gem) activesupport-3.2.12/lib/active_support/core_ext/benchmark.rb:5:in `ms' | |
(gem) actionpack-3.2.12/lib/action_controller/metal/instrumentation.rb:40:in `block in render' | |
(gem) actionpack-3.2.12/lib/action_controller/metal/instrumentation.rb:83:in `cleanup_view_runtime' | |
(gem) activerecord-3.2.12/lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime' | |
(gem) actionpack-3.2.12/lib/action_controller/metal/instrumentation.rb:39:in `render' | |
(gem) meta-tags-2.0.0/lib/meta_tags/controller_helper.rb:26:in `render_with_meta_tags' | |
(gem) activeadmin-0.6.6/lib/active_admin/resource_controller/actions.rb:13:in `block (2 levels) in index' | |
(gem) actionpack-3.2.12/lib/action_controller/metal/responder.rb:230:in `call' | |
(gem) actionpack-3.2.12/lib/action_controller/metal/responder.rb:230:in `default_render' | |
(gem) actionpack-3.2.12/lib/action_controller/metal/responder.rb:160:in `to_html' | |
(gem) responders-0.9.3/lib/responders/flash_responder.rb:104:in `to_html' | |
(gem) actionpack-3.2.12/lib/action_controller/metal/responder.rb:153:in `respond' | |
(gem) actionpack-3.2.12/lib/action_controller/metal/responder.rb:146:in `call' | |
(gem) actionpack-3.2.12/lib/action_controller/metal/mime_responds.rb:239:in `respond_with' | |
(gem) inherited_resources-1.3.1/lib/inherited_resources/actions.rb:7:in `index' | |
(gem) activeadmin-0.6.6/lib/active_admin/resource_controller/actions.rb:11:in `index' | |
(gem) actionpack-3.2.12/lib/action_controller/metal/implicit_render.rb:4:in `send_action' | |
(gem) actionpack-3.2.12/lib/abstract_controller/base.rb:167:in `process_action' | |
(gem) actionpack-3.2.12/lib/action_controller/metal/rendering.rb:10:in `process_action' | |
(gem) actionpack-3.2.12/lib/abstract_controller/callbacks.rb:18:in `block in process_action' | |
(gem) activesupport-3.2.12/lib/active_support/callbacks.rb:513:in `_run__4237678593944941869__process_action__282800077266937817__callbacks' | |
(gem) activesupport-3.2.12/lib/active_support/callbacks.rb:405:in `__run_callback' | |
(gem) activesupport-3.2.12/lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks' | |
(gem) activesupport-3.2.12/lib/active_support/callbacks.rb:81:in `run_callbacks' | |
(gem) actionpack-3.2.12/lib/abstract_controller/callbacks.rb:17:in `process_action' | |
(gem) actionpack-3.2.12/lib/action_controller/metal/rescue.rb:29:in `process_action' | |
(gem) actionpack-3.2.12/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action' | |
(gem) activesupport-3.2.12/lib/active_support/notifications.rb:123:in `block in instrument' | |
(gem) activesupport-3.2.12/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
(gem) activesupport-3.2.12/lib/active_support/notifications.rb:123:in `instrument' | |
(gem) actionpack-3.2.12/lib/action_controller/metal/instrumentation.rb:29:in `process_action' | |
(gem) actionpack-3.2.12/lib/action_controller/metal/params_wrapper.rb:207:in `process_action' | |
(gem) activerecord-3.2.12/lib/active_record/railties/controller_runtime.rb:18:in `process_action' | |
(gem) actionpack-3.2.12/lib/abstract_controller/base.rb:121:in `process' | |
(gem) actionpack-3.2.12/lib/abstract_controller/rendering.rb:45:in `process' | |
(gem) actionpack-3.2.12/lib/action_controller/metal.rb:203:in `dispatch' | |
(gem) actionpack-3.2.12/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch' | |
(gem) actionpack-3.2.12/lib/action_controller/metal.rb:246:in `block in action' | |
(gem) actionpack-3.2.12/lib/action_dispatch/routing/route_set.rb:73:in `call' | |
(gem) actionpack-3.2.12/lib/action_dispatch/routing/route_set.rb:73:in `dispatch' | |
(gem) actionpack-3.2.12/lib/action_dispatch/routing/route_set.rb:36:in `call' | |
(gem) journey-1.0.4/lib/journey/router.rb:68:in `block in call' | |
(gem) journey-1.0.4/lib/journey/router.rb:56:in `each' | |
(gem) journey-1.0.4/lib/journey/router.rb:56:in `call' | |
(gem) actionpack-3.2.12/lib/action_dispatch/routing/route_set.rb:601:in `call' | |
(gem) better_errors-0.3.2/lib/better_errors/middleware.rb:51:in `app_call' | |
(gem) better_errors-0.3.2/lib/better_errors/middleware.rb:45:in `call' | |
(gem) meta_request-0.3.4/lib/meta_request/middlewares/app_request_handler.rb:13:in `call' | |
(gem) meta_request-0.3.4/lib/meta_request/middlewares/meta_request_handler.rb:13:in `call' | |
(gem) sass-3.2.9/lib/sass/plugin/rack.rb:54:in `call' | |
(gem) galetahub-simple_captcha-0.1.5/lib/simple_captcha/middleware.rb:20:in `call' | |
(gem) warden-1.2.1/lib/warden/manager.rb:35:in `block in call' | |
(gem) warden-1.2.1/lib/warden/manager.rb:34:in `catch' | |
(gem) warden-1.2.1/lib/warden/manager.rb:34:in `call' | |
(gem) actionpack-3.2.12/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call' | |
(gem) rack-1.4.5/lib/rack/etag.rb:23:in `call' | |
(gem) rack-1.4.5/lib/rack/conditionalget.rb:25:in `call' | |
(gem) actionpack-3.2.12/lib/action_dispatch/middleware/head.rb:14:in `call' | |
(gem) actionpack-3.2.12/lib/action_dispatch/middleware/params_parser.rb:21:in `call' | |
(gem) actionpack-3.2.12/lib/action_dispatch/middleware/flash.rb:242:in `call' | |
(gem) rack-1.4.5/lib/rack/session/abstract/id.rb:210:in `context' | |
(gem) rack-1.4.5/lib/rack/session/abstract/id.rb:205:in `call' | |
(gem) actionpack-3.2.12/lib/action_dispatch/middleware/cookies.rb:341:in `call' | |
(gem) activerecord-3.2.12/lib/active_record/query_cache.rb:64:in `call' | |
(gem) activerecord-3.2.12/lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call' | |
(gem) actionpack-3.2.12/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call' | |
(gem) activesupport-3.2.12/lib/active_support/callbacks.rb:405:in `_run__173194698385325492__call__4067525844864433073__callbacks' | |
(gem) activesupport-3.2.12/lib/active_support/callbacks.rb:405:in `__run_callback' | |
(gem) activesupport-3.2.12/lib/active_support/callbacks.rb:385:in `_run_call_callbacks' | |
(gem) activesupport-3.2.12/lib/active_support/callbacks.rb:81:in `run_callbacks' | |
(gem) actionpack-3.2.12/lib/action_dispatch/middleware/callbacks.rb:27:in `call' | |
(gem) actionpack-3.2.12/lib/action_dispatch/middleware/reloader.rb:65:in `call' | |
(gem) actionpack-3.2.12/lib/action_dispatch/middleware/remote_ip.rb:31:in `call' | |
(gem) rack-contrib-1.1.0/lib/rack/contrib/response_headers.rb:17:in `call' | |
(gem) meta_request-0.3.4/lib/meta_request/middlewares/headers.rb:16:in `call' | |
(gem) airbrake-3.1.12/lib/airbrake/rails/middleware.rb:13:in `call' | |
(gem) actionpack-3.2.12/lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call' | |
(gem) actionpack-3.2.12/lib/action_dispatch/middleware/show_exceptions.rb:56:in `call' | |
(gem) railties-3.2.12/lib/rails/rack/logger.rb:32:in `call_app' | |
(gem) railties-3.2.12/lib/rails/rack/logger.rb:16:in `block in call' | |
(gem) activesupport-3.2.12/lib/active_support/tagged_logging.rb:22:in `tagged' | |
(gem) railties-3.2.12/lib/rails/rack/logger.rb:16:in `call' | |
(gem) quiet_assets-1.0.1/lib/quiet_assets.rb:20:in `call_with_quiet_assets' | |
(gem) actionpack-3.2.12/lib/action_dispatch/middleware/request_id.rb:22:in `call' | |
(gem) rack-1.4.5/lib/rack/methodoverride.rb:21:in `call' | |
(gem) rack-1.4.5/lib/rack/runtime.rb:17:in `call' | |
(gem) activesupport-3.2.12/lib/active_support/cache/strategy/local_cache.rb:72:in `call' | |
(gem) rack-1.4.5/lib/rack/lock.rb:15:in `call' | |
(gem) actionpack-3.2.12/lib/action_dispatch/middleware/static.rb:62:in `call' | |
(gem) airbrake-3.1.12/lib/airbrake/user_informer.rb:16:in `_call' | |
(gem) airbrake-3.1.12/lib/airbrake/user_informer.rb:12:in `call' | |
(gem) railties-3.2.12/lib/rails/engine.rb:479:in `call' | |
(gem) railties-3.2.12/lib/rails/application.rb:223:in `call' | |
(gem) rack-1.4.5/lib/rack/content_length.rb:14:in `call' | |
(gem) railties-3.2.12/lib/rails/rack/log_tailer.rb:17:in `call' | |
(gem) thin-1.5.0/lib/thin/connection.rb:81:in `block in pre_process' | |
(gem) thin-1.5.0/lib/thin/connection.rb:79:in `catch' | |
(gem) thin-1.5.0/lib/thin/connection.rb:79:in `pre_process' | |
(gem) thin-1.5.0/lib/thin/connection.rb:54:in `process' | |
(gem) thin-1.5.0/lib/thin/connection.rb:39:in `receive_data' | |
(gem) eventmachine-1.0.0/lib/eventmachine.rb:187:in `run_machine' | |
(gem) eventmachine-1.0.0/lib/eventmachine.rb:187:in `run' | |
(gem) thin-1.5.0/lib/thin/backends/base.rb:63:in `start' | |
(gem) thin-1.5.0/lib/thin/server.rb:159:in `start' | |
(gem) rack-1.4.5/lib/rack/handler/thin.rb:13:in `run' | |
(gem) rack-1.4.5/lib/rack/server.rb:268:in `start' | |
(gem) railties-3.2.12/lib/rails/commands/server.rb:70:in `start' | |
(gem) railties-3.2.12/lib/rails/commands.rb:55:in `block in <top (required)>' | |
(gem) railties-3.2.12/lib/rails/commands.rb:50:in `tap' | |
(gem) railties-3.2.12/lib/rails/commands.rb:50:in `<top (required)>' | |
script/rails:6:in `require' | |
script/rails:6:in `<main>' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'https://rubygems.org' | |
gem 'rails', '3.2.12' | |
gem 'rack', '1.4.5' | |
gem 'rake', '10.0.3' | |
gem 'pg' | |
gem 'activerecord-postgres-hstore' | |
gem 'pg_search' | |
gem 'activerecord-postgres-array' | |
gem "twitter-bootstrap-rails" | |
gem 'inherited_resources' | |
gem 'has_scope' | |
gem 'devise' | |
gem 'cancan' | |
gem 'kaminari' | |
gem 'russian' | |
gem 'rmagick' | |
gem 'rack-cache', :require => 'rack/cache' | |
#gem 'dragonfly' | |
gem 'carrierwave', :github => 'jnicklas/carrierwave' | |
gem 'mini_magick' | |
gem 'geocoder' | |
gem 'activeadmin'#, :github => 'gregbell/active_admin' | |
gem 'nokogiri' | |
gem 'fog' | |
gem 'wicked' | |
gem 'haml-rails' | |
gem 'jquery-rails', '2.1.4' | |
gem 'zepto-rails', :github => 'frontfoot/zepto-rails' | |
gem 'ancestry' | |
gem 'ransack' | |
#gem 'sunspot_rails' | |
#gem 'sunspot_solr' | |
#gem 'sunspot_with_kaminari' | |
gem 'acts_as_commentable_with_threading' | |
gem 'meta-tags' | |
gem 'sitemap_generator' | |
gem 'paper_trail' | |
gem "friendly_id" | |
gem 'activemerchant' | |
gem 'state_machine' | |
gem 'excon' | |
gem 'enumerize' | |
gem 'redis' | |
gem 'rest_in_place' | |
gem "cocoon" | |
gem 'formtastic' | |
gem "rails-settings-cached" | |
gem 'auto_html' | |
gem 'exception_notification', '2.6.1' | |
#gem 'imperavi-rails', :github => 'Paxa/imperavi-rails', :ref => 'ec989856' | |
#gem 'imperavi-rails', :path => '../imperavi-rails' | |
gem 'ckeditor' | |
gem 'select2-rails' | |
gem 'squeel' | |
gem 'faker' | |
gem 'chosen-rails' | |
gem 'truncate_html' | |
gem "galetahub-simple_captcha", :require => "simple_captcha" | |
group :assets do | |
gem 'sass-rails', '~> 3.2.3' | |
gem 'coffee-rails', '~> 3.2.1' | |
gem 'less-rails' | |
# See https://github.com/sstephenson/execjs#readme for more supported runtimes | |
# gem 'therubyracer', :platforms => :ruby | |
gem 'uglifier', '>= 1.0.3' | |
gem 'therubyracer' | |
end | |
group :development, :test do | |
gem 'rspec-rails' | |
end | |
group :test do | |
gem 'factory_girl_rails' | |
gem 'shoulda-matchers' | |
gem 'database_cleaner' | |
end | |
group :development do | |
gem 'rvm-capistrano' | |
gem 'capistrano' | |
gem 'capistrano_colors' | |
gem 'capistrano-unicorn', :require => false | |
gem 'quiet_assets' | |
gem 'i18n_generators' | |
gem 'sextant' | |
gem 'awesome_print' | |
gem 'meta_request', '~> 0.3.4' | |
gem 'binding_of_caller' | |
gem 'better_errors' | |
gem 'pry-rails' | |
gem 'mailcatcher' | |
end | |
group :heroku_staging do | |
gem 'thin' | |
end | |
gem 'unicorn' | |
gem 'whenever' | |
gem 'airbrake' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GIT | |
remote: git://github.com/frontfoot/zepto-rails.git | |
revision: ca71163613f201ddfca1189d2173a1e2f9e72d73 | |
specs: | |
zepto-rails (0.8.0) | |
rails (>= 3.1.0) | |
GIT | |
remote: git://github.com/jnicklas/carrierwave.git | |
revision: e629c13fa39aaa187d3abf992fdea71cd5059cb4 | |
specs: | |
carrierwave (0.8.0) | |
activemodel (>= 3.2.0) | |
activesupport (>= 3.2.0) | |
GEM | |
remote: https://rubygems.org/ | |
specs: | |
actionmailer (3.2.12) | |
actionpack (= 3.2.12) | |
mail (~> 2.4.4) | |
actionpack (3.2.12) | |
activemodel (= 3.2.12) | |
activesupport (= 3.2.12) | |
builder (~> 3.0.0) | |
erubis (~> 2.7.0) | |
journey (~> 1.0.4) | |
rack (~> 1.4.5) | |
rack-cache (~> 1.2) | |
rack-test (~> 0.6.1) | |
sprockets (~> 2.2.1) | |
active_utils (1.0.5) | |
activesupport (>= 2.3.11) | |
i18n | |
activeadmin (0.6.6) | |
arbre (~> 1.0) | |
bourbon (>= 1.0.0, < 4) | |
devise (>= 1.5.4, < 4) | |
formtastic (~> 2.0) | |
inherited_resources (~> 1.3) | |
jquery-rails (>= 1.0.0, < 3) | |
kaminari (~> 0.13, != 0.15.0) | |
meta_search (~> 1.0) | |
rails (>= 3.0.0, < 4) | |
sass (~> 3.1) | |
activemerchant (1.29.3) | |
active_utils (>= 1.0.2) | |
activesupport (>= 2.3.14) | |
builder (>= 2.0.0) | |
i18n | |
json (>= 1.5.1) | |
money | |
nokogiri | |
activemodel (3.2.12) | |
activesupport (= 3.2.12) | |
builder (~> 3.0.0) | |
activerecord (3.2.12) | |
activemodel (= 3.2.12) | |
activesupport (= 3.2.12) | |
arel (~> 3.0.2) | |
tzinfo (~> 0.3.29) | |
activerecord-postgres-array (0.0.8) | |
activerecord | |
activerecord-postgres-hstore (0.5.3) | |
rails | |
rake | |
activeresource (3.2.12) | |
activemodel (= 3.2.12) | |
activesupport (= 3.2.12) | |
activesupport (3.2.12) | |
i18n (~> 0.6) | |
multi_json (~> 1.0) | |
acts_as_commentable_with_threading (1.1.2) | |
activerecord (>= 3.0) | |
activesupport (~> 3.0) | |
awesome_nested_set (>= 2.0) | |
airbrake (3.1.12) | |
activesupport | |
builder | |
json | |
ancestry (1.3.0) | |
activerecord (>= 2.3.14) | |
arbre (1.0.3) | |
activesupport (>= 3.0.0) | |
arel (3.0.2) | |
auto_html (1.6.0) | |
redcarpet (~> 2.0) | |
rinku (~> 1.5.0) | |
awesome_nested_set (2.1.5) | |
activerecord (>= 3.0.0) | |
awesome_print (1.1.0) | |
bcrypt-ruby (3.0.1) | |
better_errors (0.3.2) | |
coderay (>= 1.0.0) | |
erubis (>= 2.7.0) | |
binding_of_caller (0.7.1) | |
debug_inspector (>= 0.0.1) | |
bourbon (3.2.4) | |
sass (~> 3.2) | |
thor | |
builder (3.0.4) | |
callsite (0.0.11) | |
cancan (1.6.8) | |
capistrano (2.15.5) | |
highline | |
net-scp (>= 1.0.0) | |
net-sftp (>= 2.0.0) | |
net-ssh (>= 2.0.14) | |
net-ssh-gateway (>= 1.1.0) | |
capistrano-unicorn (0.1.9) | |
capistrano | |
capistrano_colors (0.5.5) | |
chosen-rails (0.9.15) | |
coffee-rails (>= 3.2) | |
railties (>= 3.0) | |
sass-rails (>= 3.2) | |
chronic (0.9.1) | |
ckeditor (4.0.4) | |
mime-types | |
orm_adapter | |
cocoon (1.1.2) | |
coderay (1.0.8) | |
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.4.0) | |
commonjs (0.2.6) | |
daemons (1.1.9) | |
database_cleaner (0.9.1) | |
debug_inspector (0.0.2) | |
devise (2.2.3) | |
bcrypt-ruby (~> 3.0) | |
orm_adapter (~> 0.1) | |
railties (~> 3.1) | |
warden (~> 1.2.1) | |
diff-lcs (1.2.4) | |
domain_name (0.5.7) | |
unf (~> 0.0.3) | |
enumerize (0.5.1) | |
activesupport (>= 3.2) | |
erubis (2.7.0) | |
eventmachine (1.0.0) | |
exception_notification (2.6.1) | |
actionmailer (>= 3.0.4) | |
excon (0.16.10) | |
execjs (1.4.0) | |
multi_json (~> 1.0) | |
factory_girl (4.2.0) | |
activesupport (>= 3.0.0) | |
factory_girl_rails (4.2.1) | |
factory_girl (~> 4.2.0) | |
railties (>= 3.0.0) | |
faker (1.1.2) | |
i18n (~> 0.5) | |
fog (1.10.0) | |
builder | |
excon (~> 0.14) | |
formatador (~> 0.2.0) | |
mime-types | |
multi_json (~> 1.0) | |
net-scp (~> 1.1) | |
net-ssh (>= 2.1.3) | |
nokogiri (~> 1.5.0) | |
ruby-hmac | |
formatador (0.2.5) | |
formtastic (2.2.1) | |
actionpack (>= 3.0) | |
friendly_id (4.0.9) | |
galetahub-simple_captcha (0.1.5) | |
geocoder (1.2.5) | |
haml (3.1.7) | |
haml-rails (0.3.5) | |
actionpack (>= 3.1, < 4.1) | |
activesupport (>= 3.1, < 4.1) | |
haml (~> 3.1) | |
railties (>= 3.1, < 4.1) | |
has_scope (0.5.1) | |
highline (1.6.19) | |
hike (1.2.3) | |
i18n (0.6.4) | |
i18n_generators (1.2.1) | |
mechanize | |
rails (>= 3.0.0) | |
inherited_resources (1.3.1) | |
has_scope (~> 0.5.0) | |
responders (~> 0.6) | |
journey (1.0.4) | |
jquery-rails (2.1.4) | |
railties (>= 3.0, < 5.0) | |
thor (>= 0.14, < 2.0) | |
json (1.8.0) | |
kaminari (0.14.1) | |
actionpack (>= 3.0.0) | |
activesupport (>= 3.0.0) | |
kgio (2.8.0) | |
less (2.2.2) | |
commonjs (~> 0.2.6) | |
less-rails (2.2.6) | |
actionpack (>= 3.1) | |
less (~> 2.2.0) | |
libv8 (3.11.8.13) | |
mail (2.4.4) | |
i18n (>= 0.4.0) | |
mime-types (~> 1.16) | |
treetop (~> 1.4.8) | |
mailcatcher (0.5.12) | |
activesupport (~> 3.0) | |
eventmachine (~> 1.0.0) | |
haml (>= 3.1, < 5) | |
mail (~> 2.3) | |
sinatra (~> 1.2) | |
skinny (~> 0.2.3) | |
sqlite3 (~> 1.3) | |
thin (~> 1.5.0) | |
mechanize (2.5.1) | |
domain_name (~> 0.5, >= 0.5.1) | |
mime-types (~> 1.17, >= 1.17.2) | |
net-http-digest_auth (~> 1.1, >= 1.1.1) | |
net-http-persistent (~> 2.5, >= 2.5.2) | |
nokogiri (~> 1.4) | |
ntlm-http (~> 0.1, >= 0.1.1) | |
webrobots (~> 0.0, >= 0.0.9) | |
meta-tags (2.0.0) | |
actionpack (>= 3.0.0) | |
meta_request (0.3.4) | |
callsite (~> 0.0, >= 0.0.11) | |
rack-contrib (~> 1.1) | |
railties (>= 3.0.0, < 5.0.0) | |
meta_search (1.1.3) | |
actionpack (~> 3.1) | |
activerecord (~> 3.1) | |
activesupport (~> 3.1) | |
polyamorous (~> 0.5.0) | |
method_source (0.8.1) | |
mime-types (1.21) | |
mini_magick (3.4) | |
subexec (~> 0.2.1) | |
money (5.1.0) | |
i18n (~> 0.6.0) | |
multi_json (1.7.7) | |
net-http-digest_auth (1.2.1) | |
net-http-persistent (2.8) | |
net-scp (1.1.2) | |
net-ssh (>= 2.6.5) | |
net-sftp (2.1.2) | |
net-ssh (>= 2.6.5) | |
net-ssh (2.6.8) | |
net-ssh-gateway (1.2.0) | |
net-ssh (>= 2.6.5) | |
nokogiri (1.5.6) | |
ntlm-http (0.1.1) | |
orm_adapter (0.4.0) | |
paper_trail (2.7.0) | |
activerecord (~> 3.0) | |
railties (~> 3.0) | |
pg (0.14.1) | |
pg_search (0.5.7) | |
activerecord (>= 3) | |
activesupport (>= 3) | |
polyamorous (0.5.0) | |
activerecord (~> 3.0) | |
polyglot (0.3.3) | |
pry (0.9.12) | |
coderay (~> 1.0.5) | |
method_source (~> 0.8) | |
slop (~> 3.4) | |
pry-rails (0.2.2) | |
pry (>= 0.9.10) | |
quiet_assets (1.0.1) | |
railties (~> 3.1) | |
rack (1.4.5) | |
rack-cache (1.2) | |
rack (>= 0.4) | |
rack-contrib (1.1.0) | |
rack (>= 0.9.1) | |
rack-protection (1.5.0) | |
rack | |
rack-ssl (1.3.3) | |
rack | |
rack-test (0.6.2) | |
rack (>= 1.0) | |
rails (3.2.12) | |
actionmailer (= 3.2.12) | |
actionpack (= 3.2.12) | |
activerecord (= 3.2.12) | |
activeresource (= 3.2.12) | |
activesupport (= 3.2.12) | |
bundler (~> 1.0) | |
railties (= 3.2.12) | |
rails-settings-cached (0.2.4) | |
rails (>= 3.0.0) | |
railties (3.2.12) | |
actionpack (= 3.2.12) | |
activesupport (= 3.2.12) | |
rack-ssl (~> 1.3.2) | |
rake (>= 0.8.7) | |
rdoc (~> 3.4) | |
thor (>= 0.14.6, < 2.0) | |
raindrops (0.11.0) | |
rake (10.0.3) | |
ransack (0.7.2) | |
actionpack (~> 3.0) | |
activerecord (~> 3.0) | |
polyamorous (~> 0.5.0) | |
rdoc (3.12.2) | |
json (~> 1.4) | |
redcarpet (2.2.2) | |
redis (3.0.2) | |
ref (1.0.2) | |
responders (0.9.3) | |
railties (~> 3.1) | |
rest_in_place (2.1.1) | |
rails (>= 3.1) | |
rinku (1.5.1) | |
rmagick (2.13.2) | |
rspec-core (2.13.1) | |
rspec-expectations (2.13.0) | |
diff-lcs (>= 1.1.3, < 2.0) | |
rspec-mocks (2.13.1) | |
rspec-rails (2.13.2) | |
actionpack (>= 3.0) | |
activesupport (>= 3.0) | |
railties (>= 3.0) | |
rspec-core (~> 2.13.0) | |
rspec-expectations (~> 2.13.0) | |
rspec-mocks (~> 2.13.0) | |
ruby-hmac (0.4.0) | |
russian (0.6.0) | |
i18n (>= 0.5.0) | |
rvm-capistrano (1.2.7) | |
capistrano (>= 2.0.0) | |
sass (3.2.9) | |
sass-rails (3.2.6) | |
railties (~> 3.2.0) | |
sass (>= 3.1.10) | |
tilt (~> 1.3) | |
select2-rails (3.4.3) | |
sass-rails | |
thor (~> 0.14) | |
sextant (0.2.3) | |
activesupport (>= 3.2) | |
rails (>= 3.2) | |
shoulda-matchers (2.0.0) | |
activesupport (>= 3.0.0) | |
sinatra (1.3.6) | |
rack (~> 1.4) | |
rack-protection (~> 1.3) | |
tilt (~> 1.3, >= 1.3.3) | |
sitemap_generator (5.0.5) | |
builder | |
skinny (0.2.3) | |
eventmachine (~> 1.0.0) | |
thin (~> 1.5.0) | |
slop (3.4.3) | |
sprockets (2.2.2) | |
hike (~> 1.2) | |
multi_json (~> 1.0) | |
rack (~> 1.0) | |
tilt (~> 1.1, != 1.3.0) | |
sqlite3 (1.3.7) | |
squeel (1.0.15) | |
activerecord (~> 3.0) | |
activesupport (~> 3.0) | |
polyamorous (~> 0.5.0) | |
state_machine (1.1.2) | |
subexec (0.2.2) | |
therubyracer (0.11.3) | |
libv8 (~> 3.11.8.12) | |
ref | |
thin (1.5.0) | |
daemons (>= 1.0.9) | |
eventmachine (>= 0.12.6) | |
rack (>= 1.0.0) | |
thor (0.18.1) | |
tilt (1.4.1) | |
treetop (1.4.12) | |
polyglot | |
polyglot (>= 0.3.1) | |
truncate_html (0.9.2) | |
twitter-bootstrap-rails (2.2.0) | |
actionpack (>= 3.1) | |
execjs | |
railties (>= 3.1) | |
tzinfo (0.3.35) | |
uglifier (1.3.0) | |
execjs (>= 0.3.0) | |
multi_json (~> 1.0, >= 1.0.2) | |
unf (0.0.5) | |
unf_ext | |
unf_ext (0.0.5) | |
unicorn (4.6.3) | |
kgio (~> 2.6) | |
rack | |
raindrops (~> 0.7) | |
warden (1.2.1) | |
rack (>= 1.0) | |
webrobots (0.0.13) | |
whenever (0.8.2) | |
activesupport (>= 2.3.4) | |
chronic (>= 0.6.3) | |
wicked (0.5.0) | |
activesupport (>= 3.0.7) | |
rails (>= 3.0.7) | |
PLATFORMS | |
ruby | |
DEPENDENCIES | |
activeadmin | |
activemerchant | |
activerecord-postgres-array | |
activerecord-postgres-hstore | |
acts_as_commentable_with_threading | |
airbrake | |
ancestry | |
auto_html | |
awesome_print | |
better_errors | |
binding_of_caller | |
cancan | |
capistrano | |
capistrano-unicorn | |
capistrano_colors | |
carrierwave! | |
chosen-rails | |
ckeditor | |
cocoon | |
coffee-rails (~> 3.2.1) | |
database_cleaner | |
devise | |
enumerize | |
exception_notification (= 2.6.1) | |
excon | |
factory_girl_rails | |
faker | |
fog | |
formtastic | |
friendly_id | |
galetahub-simple_captcha | |
geocoder | |
haml-rails | |
has_scope | |
i18n_generators | |
inherited_resources | |
jquery-rails (= 2.1.4) | |
kaminari | |
less-rails | |
mailcatcher | |
meta-tags | |
meta_request (~> 0.3.4) | |
mini_magick | |
nokogiri | |
paper_trail | |
pg | |
pg_search | |
pry-rails | |
quiet_assets | |
rack (= 1.4.5) | |
rack-cache | |
rails (= 3.2.12) | |
rails-settings-cached | |
rake (= 10.0.3) | |
ransack | |
redis | |
rest_in_place | |
rmagick | |
rspec-rails | |
russian | |
rvm-capistrano | |
sass-rails (~> 3.2.3) | |
select2-rails | |
sextant | |
shoulda-matchers | |
sitemap_generator | |
squeel | |
state_machine | |
therubyracer | |
thin | |
truncate_html | |
twitter-bootstrap-rails | |
uglifier (>= 1.0.3) | |
unicorn | |
whenever | |
wicked | |
zepto-rails! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding: utf-8 | |
class User < ActiveRecord::Base | |
devise :database_authenticatable, :registerable, :recoverable, :rememberable, :trackable, | |
:confirmable, :validatable | |
attr_accessor :login | |
has_many :category_users | |
has_many :favorite_categories, :through => :category_users, :source => :category, :conditions => {:category_users => {:connection_type => :favorite}} | |
has_many :responsible_categories, :through => :category_users, :source => :category, :conditions => {:category_users => {:connection_type => :responsible}} | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment