trustieplus/app/controllers/iframes_controller.rb

18 lines
345 B
Ruby

class IframesController < ApplicationController
layout false
skip_before_filter :verify_authenticity_token, :only => [:html_content]
def show
render :layout => false
end
# 渲染实训代码
def html_content
@contents = params[:contents] || ""
respond_to do |format|
format.js
format.html
end
end
end