{"action":"created","issue":{"url":"https://api.github.com/repos/thoughtbot/ember-cli-rails/issues/311","labels_url":"https://api.github.com/repos/thoughtbot/ember-cli-rails/issues/311/labels{/name}","comments_url":"https://api.github.com/repos/thoughtbot/ember-cli-rails/issues/311/comments","events_url":"https://api.github.com/repos/thoughtbot/ember-cli-rails/issues/311/events","html_url":"https://github.com/thoughtbot/ember-cli-rails/issues/311","id":118947072,"number":311,"title":"404 for frontend.js with include_ember_script_tags :frontend","user":{"login":"sevab","id":3999613,"avatar_url":"https://avatars.githubusercontent.com/u/3999613?v=3","gravatar_id":"","url":"https://api.github.com/users/sevab","html_url":"https://github.com/sevab","followers_url":"https://api.github.com/users/sevab/followers","following_url":"https://api.github.com/users/sevab/following{/other_user}","gists_url":"https://api.github.com/users/sevab/gists{/gist_id}","starred_url":"https://api.github.com/users/sevab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sevab/subscriptions","organizations_url":"https://api.github.com/users/sevab/orgs","repos_url":"https://api.github.com/users/sevab/repos","events_url":"https://api.github.com/users/sevab/events{/privacy}","received_events_url":"https://api.github.com/users/sevab/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-26T00:25:27Z","updated_at":"2015-12-10T00:27:42Z","closed_at":null,"body":"I'm loading my ember app only inside some of my rails views via `include_ember_script_tags :frontend`. However, upon starting the server I get a 404 for `frontend.js`.\r\n\r\nThe issue is solved by a hack where I temporarily add `mount_ember_app :frontend, to: \"/\"` on top of `routes.rb` and reload the page, which presumably triggers ember to build the assets. Upon first reload I get a blank page because the assets are obviously not built yet, and upon the second reload I get a blank page because the route is caught by `mount_ember_app :frontend, to: \"/\"`, which tries and fails to load `tmp/../apps/frontend/index.html`. But now that assets have been built, removing `mount_ember_app` from routes lets me load my intended rails view as well as `frontend.js`.\r\n\r\nAny changes to ember app's files after this successfully trigger rebuilding of the asset, but not before the hack has been made.\r\n\r\nThe issue has only appeared after updating from v0.3.5 to 0.5.6. "},"comment":{"url":"https://api.github.com/repos/thoughtbot/ember-cli-rails/issues/comments/163446384","html_url":"https://github.com/thoughtbot/ember-cli-rails/issues/311#issuecomment-163446384","issue_url":"https://api.github.com/repos/thoughtbot/ember-cli-rails/issues/311","id":163446384,"user":{"login":"sevab","id":3999613,"avatar_url":"https://avatars.githubusercontent.com/u/3999613?v=3","gravatar_id":"","url":"https://api.github.com/users/sevab","html_url":"https://github.com/sevab","followers_url":"https://api.github.com/users/sevab/followers","following_url":"https://api.github.com/users/sevab/following{/other_user}","gists_url":"https://api.github.com/users/sevab/gists{/gist_id}","starred_url":"https://api.github.com/users/sevab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sevab/subscriptions","organizations_url":"https://api.github.com/users/sevab/orgs","repos_url":"https://api.github.com/users/sevab/repos","events_url":"https://api.github.com/users/sevab/events{/privacy}","received_events_url":"https://api.github.com/users/sevab/received_events","type":"User","site_admin":false},"created_at":"2015-12-10T00:27:42Z","updated_at":"2015-12-10T00:27:42Z","body":"@seanpdoyle thank you!"}}