{"action":"closed","issue":{"url":"https://api.github.com/repos/activeadmin/activeadmin/issues/4610","repository_url":"https://api.github.com/repos/activeadmin/activeadmin","labels_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/4610/labels{/name}","comments_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/4610/comments","events_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/4610/events","html_url":"https://github.com/activeadmin/activeadmin/issues/4610","id":174797152,"number":4610,"title":"NoMethodError at /admin/meta_tags undefined method `except' for #<MetaTags::MetaTagsCollection:0x007fd3e9541428>","user":{"login":"saroar","id":8770772,"avatar_url":"https://avatars.githubusercontent.com/u/8770772?v=3","gravatar_id":"","url":"https://api.github.com/users/saroar","html_url":"https://github.com/saroar","followers_url":"https://api.github.com/users/saroar/followers","following_url":"https://api.github.com/users/saroar/following{/other_user}","gists_url":"https://api.github.com/users/saroar/gists{/gist_id}","starred_url":"https://api.github.com/users/saroar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saroar/subscriptions","organizations_url":"https://api.github.com/users/saroar/orgs","repos_url":"https://api.github.com/users/saroar/repos","events_url":"https://api.github.com/users/saroar/events{/privacy}","received_events_url":"https://api.github.com/users/saroar/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":19,"created_at":"2016-09-02T16:19:44Z","updated_at":"2016-09-02T21:08:55Z","closed_at":"2016-09-02T21:08:54Z","body":"\r\n\r\n![](http://image.prntscr.com/image/f81d7d28480d4a54a2a1be646d17a17a.png)\r\n\r\n\r\nhere is my code \r\n in my application_controller \r\n```\r\nprivate\r\n\r\ndef find_meta_tags(options={})\r\n    found_meta_tags = MetaTag.where(url: request.path)\r\n    if found_meta_tags.present?\r\n      meta_tag    =   found_meta_tags.take\r\n      title       =   meta_tag.title.empty? ? site_name : meta_tag.title\r\n      description =   meta_tag.description.empty?  ? description : meta_tag.description\r\n      keywords    =   meta_tag.keywords.empty?  ? keywords : meta_tag.keywords\r\n    end\r\n  \r\n    site_name   = \"OZ INTERACTIVE\"\r\n    title       = [controller_name, action_name].join(\" \")\r\n    description = \"OZ INTERACTIVE – исследование, аналитика, проектирование, дизайн и разработка\"\r\n    image       =   options[:image] || \"logo.svg\"\r\n    current_url = request.url\r\n  \r\n  \r\n    # Let's prepare a nice set of defaults\r\n    defaults = {\r\n      site:        site_name,\r\n      title:       title,\r\n      image:       image,\r\n      description: description,\r\n      keywords:    %w[исследование аналитика проектирование дизайн и разработка],\r\n      twitter: {\r\n        site_name: site_name,\r\n        site: '@thecookieshq',\r\n        card: 'summary',\r\n        description: description,\r\n        image: image\r\n      },\r\n      og: {\r\n        url: current_url,\r\n        site_name: site_name,\r\n        title: title,\r\n        image: image,\r\n        description: description,\r\n        type: 'website'\r\n      }\r\n    }\r\n  \r\n    options.reverse_merge!(defaults)\r\n  \r\n    set_meta_tags options\r\n  end\r\n```\r\n\r\n```\r\nActiveAdmin.register MetaTag do\r\n  permit_params :locale, :title, :description, :keywords, :url\r\nend\r\n```\r\n\r\nif u user this code in application_controller \r\nit works without any error\r\n\r\n```\r\n  def find_meta_tags(options={})\r\n    found_meta_tags = MetaTag.where(url: request.path)\r\n\r\n    if found_meta_tags.present?\r\n      meta_tag = found_meta_tags.take\r\n      set_meta_tags title:        meta_tag.title,\r\n                    description:  meta_tag.description,\r\n                    keywords:     meta_tag.keywords\r\n    end\r\n  end\r\n```\r\n\r\nwhats wrong ?"}}
{"actor":{"display_login":"saroar"}}