{"action":"created","issue":{"url":"https://api.github.com/repos/thefrontiergroup/rails-template/issues/70","repository_url":"https://api.github.com/repos/thefrontiergroup/rails-template","labels_url":"https://api.github.com/repos/thefrontiergroup/rails-template/issues/70/labels{/name}","comments_url":"https://api.github.com/repos/thefrontiergroup/rails-template/issues/70/comments","events_url":"https://api.github.com/repos/thefrontiergroup/rails-template/issues/70/events","html_url":"https://github.com/thefrontiergroup/rails-template/issues/70","id":120342548,"number":70,"title":"page_navigation_helper needs to handle subpages","user":{"login":"pzi","id":2037851,"avatar_url":"https://avatars.githubusercontent.com/u/2037851?v=3","gravatar_id":"","url":"https://api.github.com/users/pzi","html_url":"https://github.com/pzi","followers_url":"https://api.github.com/users/pzi/followers","following_url":"https://api.github.com/users/pzi/following{/other_user}","gists_url":"https://api.github.com/users/pzi/gists{/gist_id}","starred_url":"https://api.github.com/users/pzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pzi/subscriptions","organizations_url":"https://api.github.com/users/pzi/orgs","repos_url":"https://api.github.com/users/pzi/repos","events_url":"https://api.github.com/users/pzi/events{/privacy}","received_events_url":"https://api.github.com/users/pzi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-04T06:33:38Z","updated_at":"2016-02-05T02:58:03Z","closed_at":"2016-02-05T02:58:03Z","body":"When on a page with subpages/-views like\r\n\r\n* `.../events/1/`\r\n* `.../events/1/team`\r\n* `.../events/1/updates`\r\n\r\nBoth tab links are *active*.\r\n\r\n![screen shot 2015-12-04 at 14 30 18](https://cloud.githubusercontent.com/assets/2037851/11583336/9e4b2324-9a93-11e5-9319-7407c67efdf1.png)\r\n\r\nI suppose there should be some flag to toggle if I want to include parent or not? Better idea?\r\n"},"comment":{"url":"https://api.github.com/repos/thefrontiergroup/rails-template/issues/comments/180169857","html_url":"https://github.com/thefrontiergroup/rails-template/issues/70#issuecomment-180169857","issue_url":"https://api.github.com/repos/thefrontiergroup/rails-template/issues/70","id":180169857,"user":{"login":"osiro","id":97817,"avatar_url":"https://avatars.githubusercontent.com/u/97817?v=3","gravatar_id":"","url":"https://api.github.com/users/osiro","html_url":"https://github.com/osiro","followers_url":"https://api.github.com/users/osiro/followers","following_url":"https://api.github.com/users/osiro/following{/other_user}","gists_url":"https://api.github.com/users/osiro/gists{/gist_id}","starred_url":"https://api.github.com/users/osiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osiro/subscriptions","organizations_url":"https://api.github.com/users/osiro/orgs","repos_url":"https://api.github.com/users/osiro/repos","events_url":"https://api.github.com/users/osiro/events{/privacy}","received_events_url":"https://api.github.com/users/osiro/received_events","type":"User","site_admin":false},"created_at":"2016-02-05T02:58:03Z","updated_at":"2016-02-05T02:58:03Z","body":"Actually... `page_navigation_helper` needs to be refactored.\r\n\r\nIt does not work for subpages and request referrers either.\r\n\r\nExample:\r\n\r\n1. User click on tab \"Send message\"\r\n2. User fill in the for in \"Send message\" page with invalid data\r\n3. controller `Message::create` renders `new` action\r\n\r\nResults: current path \"/send_message\", expected path \"/send_message/new\".\r\n\r\n```ruby\r\n\"/send_message\".include?(\"/send_message/new\")\r\n=> false\r\n```\r\n\r\nSuggested implementation:"}}