I'm almost done implementing a login system for my Ruby on Rails app. When I log in or log out, I have my session controller redirecting the user to the control panel, or homepage, respectively. However, when redirected to the control panel, the id/class tags on the body, headers, etc. are not replaced, so new HTML specific to the control panel doesn't take effect. When redirected to the homepage on logout, any dynamic content to be loaded on the homepage via AJAX is not loaded as normal. How can I solve this strange problem?I'm almost done implementing a login system for