如何将重定向更改为特定页面上的特定 Twitter Bootstrap选项卡?就像是:
def destroy
@custom_article = CustomArticle.find(params[:id])
@custom_article.destroy
respond_to do |format|
format.html { redirect_to documents_url[#specific_tab_here?] }
format.json { head :no_content }
end
end
谢谢!
更新
请参阅 @PeterWong 和 @emm 的答案组合以获得解决方案。