html效果展示的实训

dev_forum
daiao 6 years ago
parent 1b7c4bb362
commit 4a78c3cbc9

@ -51,6 +51,13 @@ class UsersController < ApplicationController
:disposition => 'attachment' #inline can open in browser
end
def html_show
@contents = File.read("#{params[:path]}")
respond_to do |format|
format.html {render :layout => false}
end
end
# Redo: 消息总数缓存
def get_navigation_info
@old_domain = edu_setting('old_edu_host')

@ -0,0 +1 @@
<%= @contents.html_safe %>
Loading…
Cancel
Save