Sha256: 058c53854a88fd5a081c4a3088acecad30111c975588149e7e6f6121ccc95977
Contents?: true
Size: 1.04 KB
Versions: 19
Compression:
Stored size: 1.04 KB
Contents
class FilterControllerBase < ApplicationController def abracadabra_utf8 @text = 'アブラカダブラ' render 'filter/text_template' end def abracadabra_xhtml_utf8 response.content_type = 'application/xhtml+xml' @text = 'アブラカダブラ' render 'filter/text_template' end def index @q = params[:q] render plain: @q end def index_hankaku render plain: params[:q] == 'アブラカダブラ' end def index_zenkaku render plain: params[:q] == 'アブラカダブラ' end def empty render plain: '' end def rawdata send_data 'アブラカダブラ', type: 'application/octet-stream' end def textarea @text = '<textarea hoge="fuu">アブラカダブラ</textarea>'.html_safe render 'filter/text_template' end def input_tag @text = '<input hoge="fuu" value="アブラカダブラ" />'.html_safe render 'filter/text_template' end def nbsp_char @text = '<a>アブラ カダブラ</a>'.html_safe render 'filter/text_template' end end
Version data entries
19 entries across 19 versions & 1 rubygems