From 77ea22173e4322b79769d15a643f7d2cb12f4d32 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Fri, 1 Sep 2017 09:16:35 +0800 Subject: [PATCH] @myshixun.shixun.language == "Html" --- app/controllers/iframes_controller.rb | 2 ++ app/views/games/_code_actions.html.erb | 6 ++++-- app/views/games/_file_edit_form.html.erb | 3 +++ config/routes.rb | 1 - public/javascripts/edu/edu_tpi.js | 5 ++++- 5 files changed, 13 insertions(+), 4 deletions(-) diff --git a/app/controllers/iframes_controller.rb b/app/controllers/iframes_controller.rb index 9fed6add6..2d1091219 100644 --- a/app/controllers/iframes_controller.rb +++ b/app/controllers/iframes_controller.rb @@ -1,5 +1,7 @@ class IframesController < ApplicationController layout false + skip_before_filter :verify_authenticity_token, :only => [:html_content] + def show render :layout => false end diff --git a/app/views/games/_code_actions.html.erb b/app/views/games/_code_actions.html.erb index 26b81d68a..77125254e 100644 --- a/app/views/games/_code_actions.html.erb +++ b/app/views/games/_code_actions.html.erb @@ -32,12 +32,14 @@