{"action":"created","issue":{"url":"https://api.github.com/repos/javiferrer/redmine_custom_values_projects/issues/5","labels_url":"https://api.github.com/repos/javiferrer/redmine_custom_values_projects/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/javiferrer/redmine_custom_values_projects/issues/5/comments","events_url":"https://api.github.com/repos/javiferrer/redmine_custom_values_projects/issues/5/events","html_url":"https://github.com/javiferrer/redmine_custom_values_projects/issues/5","id":79038310,"number":5,"title":"error when trying to customize custom fields values at project level","user":{"login":"camous","id":8566299,"avatar_url":"https://avatars.githubusercontent.com/u/8566299?v=3","gravatar_id":"","url":"https://api.github.com/users/camous","html_url":"https://github.com/camous","followers_url":"https://api.github.com/users/camous/followers","following_url":"https://api.github.com/users/camous/following{/other_user}","gists_url":"https://api.github.com/users/camous/gists{/gist_id}","starred_url":"https://api.github.com/users/camous/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/camous/subscriptions","organizations_url":"https://api.github.com/users/camous/orgs","repos_url":"https://api.github.com/users/camous/repos","events_url":"https://api.github.com/users/camous/events{/privacy}","received_events_url":"https://api.github.com/users/camous/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-21T15:12:18Z","updated_at":"2015-05-21T15:15:22Z","closed_at":null,"body":"Hello,\r\n\r\nafter a successful setup of the plugin, creating a custom field (list / checkboxes multiples choice)\r\nwhen activating the field at project leve, and clicking on link \"new customization\", I'm getting an HTTP 500 error.\r\n\r\nEnvironment:\r\n  Redmine version                3.0.2.stable.14236\r\n  Ruby version                   2.2.0-p0 (2014-12-25) [x86_64-linux]\r\n  Rails version                  4.2.1\r\n  Environment                    production\r\n  Database adapter               Mysql2\r\nSCM:\r\n  Subversion                     1.8.8\r\n  Git                            1.9.1\r\n  Filesystem                     \r\nRedmine plugins:\r\n  redmine_agile                  1.3.8\r\n  redmine_cors                   0.0.1\r\n  redmine_email_images           0.1.1\r\n  redmine_hotkeys_js             0.0.2\r\n  redmine_image_clipboard_paste  1.0.0\r\n\r\nI know that redmine 3.x isn't tested, but according to the error, I'm not sure it's linked to that ? (or maybe the version of activerecord)? (I'm not a ruby expert :/)\r\n\r\nhere full stack\r\nNoMethodError (undefined method `find_or_initialize_by_project_id_and_custom_field_id' for #<Class:0x007fc7b36a5ce8>):\r\n  activerecord (4.2.1) lib/active_record/dynamic_matchers.rb:26:in `method_missing'\r\n  plugins/redmine_custom_values_projects/app/controllers/possible_value_projects_controller.rb:54:in `load_custom_field_project_values'\r\n  activesupport (4.2.1) lib/active_support/callbacks.rb:432:in `block in make_lambda'\r\n  activesupport (4.2.1) lib/active_support/callbacks.rb:164:in `call'\r\n  activesupport (4.2.1) lib/active_support/callbacks.rb:164:in `block in halting'\r\n  activesupport (4.2.1) lib/active_support/callbacks.rb:504:in `call'\r\n  activesupport (4.2.1) lib/active_support/callbacks.rb:504:in `block in call'\r\n  activesupport (4.2.1) lib/active_support/callbacks.rb:504:in `each'\r\n  activesupport (4.2.1) lib/active_support/callbacks.rb:504:in `call'\r\n  activesupport (4.2.1) lib/active_support/callbacks.rb:92:in `_run_callbacks'\r\n  activesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_process_action_callbacks'\r\n  activesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks'\r\n  actionpack (4.2.1) lib/abstract_controller/callbacks.rb:19:in `process_action'\r\n  actionpack (4.2.1) lib/action_controller/metal/rescue.rb:29:in `process_action'\r\n  actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'\r\n  activesupport (4.2.1) lib/active_support/notifications.rb:164:in `block in instrument'\r\n  activesupport (4.2.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument'\r\n  activesupport (4.2.1) lib/active_support/notifications.rb:164:in `instrument'\r\n  actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:30:in `process_action'\r\n  actionpack (4.2.1) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'\r\n  activerecord (4.2.1) lib/active_record/railties/controller_runtime.rb:18:in `process_action'\r\n  actionpack (4.2.1) lib/abstract_controller/base.rb:137:in `process'\r\n  actionview (4.2.1) lib/action_view/rendering.rb:30:in `process'\r\n  actionpack (4.2.1) lib/action_controller/metal.rb:196:in `dispatch'\r\n  actionpack (4.2.1) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'\r\n  actionpack (4.2.1) lib/action_controller/metal.rb:237:in `block in action'\r\n  actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:74:in `call'\r\n  actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:74:in `dispatch'\r\n  actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:43:in `serve'\r\n  actionpack (4.2.1) lib/action_dispatch/journey/router.rb:43:in `block in serve'\r\n  actionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:in `each'\r\n  actionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:in `serve'\r\n  actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:819:in `call'\r\n  rack-openid (1.4.2) lib/rack/openid.rb:98:in `call'\r\n  request_store (1.0.5) lib/request_store/middleware.rb:9:in `call'\r\n  rack (1.6.0) lib/rack/etag.rb:24:in `call'\r\n  rack (1.6.0) lib/rack/conditionalget.rb:25:in `call'\r\n  rack (1.6.0) lib/rack/head.rb:13:in `call'\r\n  actionpack-xml_parser (1.0.2) lib/action_dispatch/xml_params_parser.rb:16:in `call'\r\n  actionpack (4.2.1) lib/action_dispatch/middleware/params_parser.rb:27:in `call'\r\n  actionpack (4.2.1) lib/action_dispatch/middleware/flash.rb:260:in `call'\r\n  rack (1.6.0) lib/rack/session/abstract/id.rb:225:in `context'\r\n  rack (1.6.0) lib/rack/session/abstract/id.rb:220:in `call'\r\n  actionpack (4.2.1) lib/action_dispatch/middleware/cookies.rb:560:in `call'\r\n  activerecord (4.2.1) lib/active_record/query_cache.rb:36:in `call'\r\n  activerecord (4.2.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:649:in `call'\r\n  actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'\r\n  activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `call'\r\n  activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `_run_callbacks'\r\n  activesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_call_callbacks'\r\n  activesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks'\r\n  actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:27:in `call'\r\n  actionpack (4.2.1) lib/action_dispatch/middleware/remote_ip.rb:78:in `call'\r\n  actionpack (4.2.1) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'\r\n  actionpack (4.2.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'\r\n  railties (4.2.1) lib/rails/rack/logger.rb:38:in `call_app'\r\n  railties (4.2.1) lib/rails/rack/logger.rb:20:in `block in call'\r\n  activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `block in tagged'\r\n  activesupport (4.2.1) lib/active_support/tagged_logging.rb:26:in `tagged'\r\n  activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `tagged'\r\n  railties (4.2.1) lib/rails/rack/logger.rb:20:in `call'\r\n  actionpack (4.2.1) lib/action_dispatch/middleware/request_id.rb:21:in `call'\r\n  rack (1.6.0) lib/rack/methodoverride.rb:22:in `call'\r\n  rack (1.6.0) lib/rack/runtime.rb:18:in `call'\r\n  activesupport (4.2.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'\r\n  actionpack (4.2.1) lib/action_dispatch/middleware/static.rb:113:in `call'\r\n  rack (1.6.0) lib/rack/sendfile.rb:113:in `call'\r\n  railties (4.2.1) lib/rails/engine.rb:518:in `call'\r\n  railties (4.2.1) lib/rails/application.rb:164:in `call'\r\n  railties (4.2.1) lib/rails/railtie.rb:194:in `public_send'\r\n  railties (4.2.1) lib/rails/railtie.rb:194:in `method_missing'\r\n  passenger (5.0.2) lib/phusion_passenger/rack/thread_handler_extension.rb:85:in `process_request'\r\n  passenger (5.0.2) lib/phusion_passenger/request_handler/thread_handler.rb:149:in `accept_and_process_next_request'\r\n  passenger (5.0.2) lib/phusion_passenger/request_handler/thread_handler.rb:110:in `main_loop'\r\n  passenger (5.0.2) lib/phusion_passenger/request_handler.rb:414:in `block (3 levels) in start_threads'\r\n  passenger (5.0.2) lib/phusion_passenger/utils.rb:111:in `block in create_thread_and_abort_on_exception'\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/javiferrer/redmine_custom_values_projects/issues/comments/104315038","html_url":"https://github.com/javiferrer/redmine_custom_values_projects/issues/5#issuecomment-104315038","issue_url":"https://api.github.com/repos/javiferrer/redmine_custom_values_projects/issues/5","id":104315038,"user":{"login":"javiferrer","id":1481567,"avatar_url":"https://avatars.githubusercontent.com/u/1481567?v=3","gravatar_id":"","url":"https://api.github.com/users/javiferrer","html_url":"https://github.com/javiferrer","followers_url":"https://api.github.com/users/javiferrer/followers","following_url":"https://api.github.com/users/javiferrer/following{/other_user}","gists_url":"https://api.github.com/users/javiferrer/gists{/gist_id}","starred_url":"https://api.github.com/users/javiferrer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javiferrer/subscriptions","organizations_url":"https://api.github.com/users/javiferrer/orgs","repos_url":"https://api.github.com/users/javiferrer/repos","events_url":"https://api.github.com/users/javiferrer/events{/privacy}","received_events_url":"https://api.github.com/users/javiferrer/received_events","type":"User","site_admin":false},"created_at":"2015-05-21T15:15:22Z","updated_at":"2015-05-21T15:15:22Z","body":"Sorry, but this plugin is not compatible with redmine 3.x yet.\r\n"}}