阅读背景:

Ruby on Rails - 登录或注销后redirect_to不会执行与新页面关联的ajax / js / css加载

来源:互联网 

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




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: