Module: SharkApps::ViewHelpers
- Defined in:
- lib/sharkapps/view_helpers.rb
Instance Method Summary collapse
- #link_to(name, options = {}, html_options = {}) ⇒ Object
- #show_header_messages ⇒ Object
- #show_trial_info ⇒ Object
Instance Method Details
#link_to(name, options = {}, html_options = {}) ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 |
# File 'lib/sharkapps/view_helpers.rb', line 2 def link_to(name, = {}, = {}) if params[:fb_sig_in_iframe] rel = url_for url = "http://apps.facebook.com/" + 'eyal_coupons' + rel [:href] = url [:target] = "_top" super(name, {}, ) else super(name, , ) end end |
#show_header_messages ⇒ Object
19 20 21 |
# File 'lib/sharkapps/view_helpers.rb', line 19 def end |
#show_trial_info ⇒ Object
15 16 17 |
# File 'lib/sharkapps/view_helpers.rb', line 15 def show_trial_info render :partial => "shared/trial_info" end |