{"action":"created","issue":{"url":"https://api.github.com/repos/martin-denizet/redmine_login_audit/issues/22","labels_url":"https://api.github.com/repos/martin-denizet/redmine_login_audit/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/martin-denizet/redmine_login_audit/issues/22/comments","events_url":"https://api.github.com/repos/martin-denizet/redmine_login_audit/issues/22/events","html_url":"https://github.com/martin-denizet/redmine_login_audit/issues/22","id":125780338,"number":22,"title":"Compatibility with Redmine 3.2","user":{"login":"topkool","id":5410883,"avatar_url":"https://avatars.githubusercontent.com/u/5410883?v=3","gravatar_id":"","url":"https://api.github.com/users/topkool","html_url":"https://github.com/topkool","followers_url":"https://api.github.com/users/topkool/followers","following_url":"https://api.github.com/users/topkool/following{/other_user}","gists_url":"https://api.github.com/users/topkool/gists{/gist_id}","starred_url":"https://api.github.com/users/topkool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/topkool/subscriptions","organizations_url":"https://api.github.com/users/topkool/orgs","repos_url":"https://api.github.com/users/topkool/repos","events_url":"https://api.github.com/users/topkool/events{/privacy}","received_events_url":"https://api.github.com/users/topkool/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-09T20:41:18Z","updated_at":"2016-01-28T18:48:07Z","closed_at":null,"body":"I got an issue, but the log shows that:\r\n\r\n~~~\r\nProcessing by LoginAuditController#index as HTML\r\n  Current user: abatista (id=8)\r\n  Rendered plugins/redmine_login_audit/app/views/login_audit/index.html.erb within layouts/admin (5.7ms)\r\nCompleted 500 Internal Server Error in 174ms (ActiveRecord: 160.4ms)\r\n\r\nActionView::Template::Error (Asset was not declared to be precompiled in production.\r\nAdd `Rails.application.config.assets.precompile += %w( wice_grid.js )` to `config/initializers/assets.rb` and restart your server):\r\n    1: <% content_for :header_tags do %>\r\n    2:     <%= stylesheet_link_tag 'login_audit', :plugin => 'redmine_login_audit' %>\r\n    3:     <%= stylesheet_link_tag 'wice_grid', :plugin => 'redmine_login_audit' %>\r\n    4:     <%= javascript_include_tag 'wice_grid' %>\r\n    5:     <script type=\"text/javascript\">\r\n    6:         function filterByDate(value) {\r\n    7:             $('#grid_f_date option[value=' + value + ']').prop('selected', true);\r\n  app/helpers/application_helper.rb:1224:in `javascript_include_tag'\r\n  lib/redmine/sudo_mode.rb:63:in `sudo_mode'\r\n~~~\r\n\r\nTherefore, I added `Rails.application.config.assets.precompile += %w( wice_grid.js )` to `config/initializers/assets.rb` (I had to create the file) and restarted my server, and it works.\r\n"},"comment":{"url":"https://api.github.com/repos/martin-denizet/redmine_login_audit/issues/comments/176334049","html_url":"https://github.com/martin-denizet/redmine_login_audit/issues/22#issuecomment-176334049","issue_url":"https://api.github.com/repos/martin-denizet/redmine_login_audit/issues/22","id":176334049,"user":{"login":"nmilanov","id":16882507,"avatar_url":"https://avatars.githubusercontent.com/u/16882507?v=3","gravatar_id":"","url":"https://api.github.com/users/nmilanov","html_url":"https://github.com/nmilanov","followers_url":"https://api.github.com/users/nmilanov/followers","following_url":"https://api.github.com/users/nmilanov/following{/other_user}","gists_url":"https://api.github.com/users/nmilanov/gists{/gist_id}","starred_url":"https://api.github.com/users/nmilanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nmilanov/subscriptions","organizations_url":"https://api.github.com/users/nmilanov/orgs","repos_url":"https://api.github.com/users/nmilanov/repos","events_url":"https://api.github.com/users/nmilanov/events{/privacy}","received_events_url":"https://api.github.com/users/nmilanov/received_events","type":"User","site_admin":false},"created_at":"2016-01-28T18:48:07Z","updated_at":"2016-01-28T18:48:07Z","body":"Same error here:\r\n\r\n```\r\nProcessing by LoginAuditController#index as HTML\r\n  Current user: nmilanov (id=19)\r\n  Rendered plugins/redmine_login_audit/app/views/login_audit/_login_audit_grid.html.erb (2.1ms)\r\n  Rendered plugins/redmine_login_audit/app/views/login_audit/index.html.erb within layouts/admin (6.7ms)\r\nCompleted 500 Internal Server Error in 20ms (ActiveRecord: 2.0ms)\r\n\r\nActionView::Template::Error (WiceGrid: Column 'api' is not found in table 'login_audits'! If 'api' belongs to another table you should declare it in :include or :join when initialising the grid, and specify :model in column declaration.):\r\n    16:     format_time(audit.created_on)\r\n    17:   end\r\n    18:\r\n    19:   g.column name: t(:label_la_api), in_csv: false, attribute: 'api' do |audit|\r\n    20:     checked_image(audit.api?)\r\n    21:   end\r\n    22:\r\n  lib/redmine/sudo_mode.rb:63:in `sudo_mode'\r\n\r\n```\r\n\r\nHere some env:\r\n```\r\nEnvironment:\r\n  Redmine version                3.2.0.stable\r\n  Ruby version                   2.2.4-p230 (2015-12-16) [x86_64-linux]\r\n  Rails version                  4.2.5\r\n  Environment                    production\r\n  Database adapter               PostgreSQL\r\n```\r\n\r\nI'm looking forward for a fix"}}