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>アブラ&nbsp;カダブラ</a>'.html_safe
    render 'filter/text_template'
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
jpmobile-8.0.0 test/rails/overrides/app/controllers/filter_controller_base.rb
jpmobile-7.2.0 test/rails/overrides/app/controllers/filter_controller_base.rb
jpmobile-7.1.0 test/rails/overrides/app/controllers/filter_controller_base.rb
jpmobile-7.0.4 test/rails/overrides/app/controllers/filter_controller_base.rb
jpmobile-7.0.3 test/rails/overrides/app/controllers/filter_controller_base.rb
jpmobile-7.0.2 test/rails/overrides/app/controllers/filter_controller_base.rb
jpmobile-7.0.1 test/rails/overrides/app/controllers/filter_controller_base.rb
jpmobile-7.0.0 test/rails/overrides/app/controllers/filter_controller_base.rb
jpmobile-6.1.2 test/rails/overrides/app/controllers/filter_controller_base.rb
jpmobile-6.1.1 test/rails/overrides/app/controllers/filter_controller_base.rb
jpmobile-6.1.0 test/rails/overrides/app/controllers/filter_controller_base.rb
jpmobile-6.0.0 test/rails/overrides/app/controllers/filter_controller_base.rb
jpmobile-5.2.5 test/rails/overrides/app/controllers/filter_controller_base.rb
jpmobile-6.0.0.beta test/rails/overrides/app/controllers/filter_controller_base.rb
jpmobile-5.2.4 test/rails/overrides/app/controllers/filter_controller_base.rb
jpmobile-5.2.3 test/rails/overrides/app/controllers/filter_controller_base.rb
jpmobile-5.2.2 test/rails/overrides/app/controllers/filter_controller_base.rb
jpmobile-5.2.1 test/rails/overrides/app/controllers/filter_controller_base.rb
jpmobile-5.2.0 test/rails/overrides/app/controllers/filter_controller_base.rb