Class: Egalite::Keitai::Redirector
- Inherits:
-
Controller
- Object
- Controller
- Egalite::Keitai::Redirector
- Defined in:
- lib/egalite/keitai/keitai.rb
Constant Summary
Constants inherited from Controller
Instance Attribute Summary
Attributes inherited from Controller
#env, #log_values, #params, #req, #template_file
Instance Method Summary collapse
Methods inherited from Controller
#after_filter, #after_filter_html, #after_filter_return_value, #before_filter, #cookies, #db, #delegate, #errorlog, #escape_html, #file_form, #filter_on_html_load, #form, #id, #include, #link_to, #notfound, #raw, #redirect, #redirect_permanent, #send_data, #send_file, #session, #table_by_array, #tags, #url_for
Instance Method Details
#get(crypted_url) ⇒ Object
95 96 97 98 |
# File 'lib/egalite/keitai/keitai.rb', line 95 def get(crypted_url) url = URLSession.decrypt(crypted_url, redirector_crypt_key) "<html><body>外部サイトへ移動しようとしています。以下のリンクをクリックしてください。<br/><br/><a href='#{URI.escape(url)}'>リンク</a></body></html>" end |
#redirector_crypt_key ⇒ Object
99 100 101 |
# File 'lib/egalite/keitai/keitai.rb', line 99 def redirector_crypt_key "Example1" end |