我使用jQuery和history.js来管理部分页面之间的动态转换,从而避免重新加载整个文档。有些部分页面调用自己独特的javascript文件。更精细的细节我的主模板(用于所有页面)可以被认为是一个简单的模板:<head> //scripts to manage asynchronous loadingof partial-pages into #content div
在那里我必须重新加载部分页面。例如,创建操作 # Some transaction to the database format.html{render :text => 'Add post' } end在我的视图帖子/create.js.rjs中,我想重新加载用户/ _login.html.erb文件这包含帖子的总