{"action":"created","issue":{"url":"https://api.github.com/repos/norman/friendly_id/issues/304","repository_url":"https://api.github.com/repos/norman/friendly_id","labels_url":"https://api.github.com/repos/norman/friendly_id/issues/304/labels{/name}","comments_url":"https://api.github.com/repos/norman/friendly_id/issues/304/comments","events_url":"https://api.github.com/repos/norman/friendly_id/issues/304/events","html_url":"https://github.com/norman/friendly_id/issues/304","id":5318674,"number":304,"title":"Slug works with Chinese Character?","user":{"login":"wakilo","id":1519279,"avatar_url":"https://avatars.githubusercontent.com/u/1519279?v=3","gravatar_id":"","url":"https://api.github.com/users/wakilo","html_url":"https://github.com/wakilo","followers_url":"https://api.github.com/users/wakilo/followers","following_url":"https://api.github.com/users/wakilo/following{/other_user}","gists_url":"https://api.github.com/users/wakilo/gists{/gist_id}","starred_url":"https://api.github.com/users/wakilo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wakilo/subscriptions","organizations_url":"https://api.github.com/users/wakilo/orgs","repos_url":"https://api.github.com/users/wakilo/repos","events_url":"https://api.github.com/users/wakilo/events{/privacy}","received_events_url":"https://api.github.com/users/wakilo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2012-06-28T09:30:50Z","updated_at":"2016-11-29T05:07:26Z","closed_at":"2012-12-09T16:40:20Z","body":"I followed the instruction of railscasts #314 and successfully add friendly_id. However it seems slug doesn't work with Chinese name.\n\nhere is the code\n\n``` ruby\n# /app/models/article.rb\nclass Article < ActiveRecord::Base\n  extend FriendlyId\n  friendly_id :name, use: :slugged\nend\n```\n\nLet's say I create an new article with Chinese name.\n\nIt seems FriendlyId is unable to save the Chinese name in slug column. So the URL still shows the id of the article.\n\nIf I do this without slug\n\n``` ruby\n# /app/models/article.rb\nclass Article < ActiveRecord::Base\n  extend FriendlyId\n  friendly_id :name\nend\n```\n\nIt works but I have to ensure no duplicate name.\n\nAny idea how to solve this?\n"},"comment":{"url":"https://api.github.com/repos/norman/friendly_id/issues/comments/263477580","html_url":"https://github.com/norman/friendly_id/issues/304#issuecomment-263477580","issue_url":"https://api.github.com/repos/norman/friendly_id/issues/304","id":263477580,"user":{"login":"PascalPixel","id":3094044,"avatar_url":"https://avatars.githubusercontent.com/u/3094044?v=3","gravatar_id":"","url":"https://api.github.com/users/PascalPixel","html_url":"https://github.com/PascalPixel","followers_url":"https://api.github.com/users/PascalPixel/followers","following_url":"https://api.github.com/users/PascalPixel/following{/other_user}","gists_url":"https://api.github.com/users/PascalPixel/gists{/gist_id}","starred_url":"https://api.github.com/users/PascalPixel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PascalPixel/subscriptions","organizations_url":"https://api.github.com/users/PascalPixel/orgs","repos_url":"https://api.github.com/users/PascalPixel/repos","events_url":"https://api.github.com/users/PascalPixel/events{/privacy}","received_events_url":"https://api.github.com/users/PascalPixel/received_events","type":"User","site_admin":false},"created_at":"2016-11-29T05:07:26Z","updated_at":"2016-11-29T05:07:26Z","body":"For other Google Searchers:\r\n\r\nThis is now achievable through the friendly_id.rb config file, all the way at the bottom you can enable transliteration, be sure to add the 'babosa' gem to your gemfile first."}}
{"actor":{"display_login":"PascalPixel"}}