{"action":"created","issue":{"url":"https://api.github.com/repos/rails/rails/issues/24033","repository_url":"https://api.github.com/repos/rails/rails","labels_url":"https://api.github.com/repos/rails/rails/issues/24033/labels{/name}","comments_url":"https://api.github.com/repos/rails/rails/issues/24033/comments","events_url":"https://api.github.com/repos/rails/rails/issues/24033/events","html_url":"https://github.com/rails/rails/issues/24033","id":138308098,"number":24033,"title":"Rails 5.0.0.beta3: Development environment: Assets not (re-)loaded with HTTP requests (javascript not working)","user":{"login":"john-999","id":3640027,"avatar_url":"https://avatars.githubusercontent.com/u/3640027?v=3","gravatar_id":"","url":"https://api.github.com/users/john-999","html_url":"https://github.com/john-999","followers_url":"https://api.github.com/users/john-999/followers","following_url":"https://api.github.com/users/john-999/following{/other_user}","gists_url":"https://api.github.com/users/john-999/gists{/gist_id}","starred_url":"https://api.github.com/users/john-999/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/john-999/subscriptions","organizations_url":"https://api.github.com/users/john-999/orgs","repos_url":"https://api.github.com/users/john-999/repos","events_url":"https://api.github.com/users/john-999/events{/privacy}","received_events_url":"https://api.github.com/users/john-999/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-03T21:53:50Z","updated_at":"2016-03-04T00:09:24Z","closed_at":null,"body":"Using Rails 5.0.0.beta3, I render a typical full \"edit profile\" page using a GET request.\r\n\r\nThe problem: The javascript/jQuery features do not work on this page anymore, once the page has loaded. (However, if I hit \"reload\", these features do work again.)\r\n\r\nThe page structure looks like this:\r\n\r\n    <section class=\"users\" id=\"registrations_edit\">\r\n\r\n      <%= link_to 'Change password', '#void', id: 'change_password' %>\r\n\r\n      <div id=\"password_modification\">\r\n\t\r\n\t\t[...some form fields here...]\r\n\r\n      </div>\r\n\r\n    </section>\r\n\r\nThe JS code looks like this:\r\n\r\n    $(function() {\r\n\r\n      // The below click only works when the page is manually reloaded:\r\n\r\n      $('section.users#registrations_edit').on('click', 'a#change_password', function(e) {\r\n        e.preventDefault();\r\n        $('div#password_modification').toggle();\r\n      });\r\n  \r\n  \r\n      // The below alert message only appears when the page is manually reloaded:\r\n\t\r\n      if ($('section.users#registrations_edit').length) {\r\n        alert('Hey there.');\r\n      }\r\n  \r\n    });\r\n\r\nMy gems that could be the source of the problem:\r\n- Rails 5.0.0.beta3\r\n- jquery-rails (4.1.0)\r\n- jquery-turbolinks (2.1.0)\r\n- turbolinks (5.0.0.beta2)\r\n\r\nEDIT:\r\nI just noticed that while browsing the site in question (still in dev mode), I see in the server logs that the assets are not loaded again, when the next page is loaded. Is this the reason for my issue? What's the best way to deal with this? (This behavior is new, right?)"},"comment":{"url":"https://api.github.com/repos/rails/rails/issues/comments/192030821","html_url":"https://github.com/rails/rails/issues/24033#issuecomment-192030821","issue_url":"https://api.github.com/repos/rails/rails/issues/24033","id":192030821,"user":{"login":"maclover7","id":3020626,"avatar_url":"https://avatars.githubusercontent.com/u/3020626?v=3","gravatar_id":"","url":"https://api.github.com/users/maclover7","html_url":"https://github.com/maclover7","followers_url":"https://api.github.com/users/maclover7/followers","following_url":"https://api.github.com/users/maclover7/following{/other_user}","gists_url":"https://api.github.com/users/maclover7/gists{/gist_id}","starred_url":"https://api.github.com/users/maclover7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maclover7/subscriptions","organizations_url":"https://api.github.com/users/maclover7/orgs","repos_url":"https://api.github.com/users/maclover7/repos","events_url":"https://api.github.com/users/maclover7/events{/privacy}","received_events_url":"https://api.github.com/users/maclover7/received_events","type":"User","site_admin":false},"created_at":"2016-03-04T00:09:24Z","updated_at":"2016-03-04T00:09:24Z","body":"cc @schneems "}}