educoder/app/controllers/iframes_controller.rb

18 lines
345 B
Ruby
Raw Normal View History

2017-08-04 09:38:10 +08:00
class IframesController < ApplicationController
layout false
2017-09-01 09:16:35 +08:00
skip_before_filter :verify_authenticity_token, :only => [:html_content]
2017-08-04 09:38:10 +08:00
def show
render :layout => false
end
# 渲染实训代码
def html_content
@contents = params[:contents] || ""
respond_to do |format|
format.js
2017-08-23 10:01:24 +08:00
format.html
2017-08-04 09:38:10 +08:00
end
end
end