{"action":"created","issue":{"url":"https://api.github.com/repos/rails/rails/issues/21004","labels_url":"https://api.github.com/repos/rails/rails/issues/21004/labels{/name}","comments_url":"https://api.github.com/repos/rails/rails/issues/21004/comments","events_url":"https://api.github.com/repos/rails/rails/issues/21004/events","html_url":"https://github.com/rails/rails/issues/21004","id":96874736,"number":21004,"title":"to_partial_path namespaced model - wrong path","user":{"login":"olegantonyan","id":2301579,"avatar_url":"https://avatars.githubusercontent.com/u/2301579?v=3","gravatar_id":"","url":"https://api.github.com/users/olegantonyan","html_url":"https://github.com/olegantonyan","followers_url":"https://api.github.com/users/olegantonyan/followers","following_url":"https://api.github.com/users/olegantonyan/following{/other_user}","gists_url":"https://api.github.com/users/olegantonyan/gists{/gist_id}","starred_url":"https://api.github.com/users/olegantonyan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olegantonyan/subscriptions","organizations_url":"https://api.github.com/users/olegantonyan/orgs","repos_url":"https://api.github.com/users/olegantonyan/repos","events_url":"https://api.github.com/users/olegantonyan/events{/privacy}","received_events_url":"https://api.github.com/users/olegantonyan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rails/rails/labels/stale","name":"stale","color":"444444"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-23T18:23:17Z","updated_at":"2015-12-23T17:38:12Z","closed_at":null,"body":"Rails 4.2.3\r\n```ruby\r\n# app/models/user.rb\r\nclass User < ActiveRecord::Base\r\n  has_one :profile\r\nend\r\n\r\n# app/models/user/profile.rb\r\nclass User::Profile < ActiveRecord::Base\r\n  belongs_to :user\r\nend\r\n```\r\n\r\nIn this case when you use `render @user.profile` you get missing template because:\r\n```\r\nUser::Profile.first.to_partial_path\r\n=> \"user/profiles/profile\"\r\n```\r\nBut templates related to users are stored in `users/`, not `user/`, so I expect templates for nested models there as well.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/rails/rails/issues/comments/166952563","html_url":"https://github.com/rails/rails/issues/21004#issuecomment-166952563","issue_url":"https://api.github.com/repos/rails/rails/issues/21004","id":166952563,"user":{"login":"rails-bot","id":7468109,"avatar_url":"https://avatars.githubusercontent.com/u/7468109?v=3","gravatar_id":"","url":"https://api.github.com/users/rails-bot","html_url":"https://github.com/rails-bot","followers_url":"https://api.github.com/users/rails-bot/followers","following_url":"https://api.github.com/users/rails-bot/following{/other_user}","gists_url":"https://api.github.com/users/rails-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/rails-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rails-bot/subscriptions","organizations_url":"https://api.github.com/users/rails-bot/orgs","repos_url":"https://api.github.com/users/rails-bot/repos","events_url":"https://api.github.com/users/rails-bot/events{/privacy}","received_events_url":"https://api.github.com/users/rails-bot/received_events","type":"User","site_admin":false},"created_at":"2015-12-23T17:38:12Z","updated_at":"2015-12-23T17:38:12Z","body":"This issue has been automatically marked as stale because it has not been commented on for at least\nthree months.\n\nThe resources of the Rails team are limited, and so we are asking for your help.\n\nIf you can still reproduce this error on the `4-2-stable`, `4-1-stable` branches or on `master`,\nplease reply with all of the information you have about it in order to keep the issue open.\n\nThank you for all your contributions.\n"}}