{"action":"closed","issue":{"url":"https://api.github.com/repos/activeadmin/activeadmin/issues/5068","repository_url":"https://api.github.com/repos/activeadmin/activeadmin","labels_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/5068/labels{/name}","comments_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/5068/comments","events_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/5068/events","html_url":"https://github.com/activeadmin/activeadmin/issues/5068","id":240854685,"number":5068,"title":"why doesn't make page for model name 'Reward'","user":{"login":"myriky","id":581861,"avatar_url":"https://avatars3.githubusercontent.com/u/581861?v=4","gravatar_id":"","url":"https://api.github.com/users/myriky","html_url":"https://github.com/myriky","followers_url":"https://api.github.com/users/myriky/followers","following_url":"https://api.github.com/users/myriky/following{/other_user}","gists_url":"https://api.github.com/users/myriky/gists{/gist_id}","starred_url":"https://api.github.com/users/myriky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myriky/subscriptions","organizations_url":"https://api.github.com/users/myriky/orgs","repos_url":"https://api.github.com/users/myriky/repos","events_url":"https://api.github.com/users/myriky/events{/privacy}","received_events_url":"https://api.github.com/users/myriky/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-07-06T06:15:53Z","updated_at":"2018-02-04T02:08:12Z","closed_at":"2018-02-04T02:08:12Z","author_association":"NONE","body":"```\r\n# models/reward.rb\r\nclass Reward < ApplicationRecord\r\n\r\nend\r\n\r\n# app/admin/reward.rb\r\nActiveAdmin.register Reward do \r\n\r\nend\r\n\r\n```\r\n\r\n\r\n\r\n### Expected behavior\r\n\r\nI just register resource for Reward model.\r\n\r\n### Actual behavior\r\n\r\n`\r\nwrong number of arguments (given 2, expected 0..1)\r\n`\r\n\r\n`\r\nActionView::Template::Error (wrong number of arguments (given 2, expected 0..1)):\r\n    1: insert_tag active_admin_application.view_factory[\"page\"]\r\n`\r\n```\r\nExtracted source (around line #330):\r\n\r\n328     #    # Instantiates a single new object\r\n329     #   User.new(first_name: 'Jamie')\r\n330     def initialize(attributes = nil)\r\n331     self.class.define_attribute_methods\r\n332     @attributes = self.class._default_attributes.deep_dup\r\n```\r\n\r\n### How to reproduce\r\n\r\nI just make Reward model and register resource to ActiveAdmin.\r\n\r\nalso using Pundit. but i think that's not matters.\r\n\r\nif i rename the model, (just like Reward2, RewardBlabla, Rewardasdf) that IT WORKS!!!, funny 🤣 \r\nsomebody help!.."}}
{"actor":{"display_login":"zorab47"}}