Module: SharkApps::ViewHelpers

Defined in:
lib/sharkapps/view_helpers.rb

Instance Method Summary collapse

Instance Method Details



2
3
4
5
6
7
8
9
10
11
12
# File 'lib/sharkapps/view_helpers.rb', line 2

def link_to(name, options = {}, html_options = {})
  if params[:fb_sig_in_iframe]
    rel = url_for options
    url = "http://apps.facebook.com/" + 'eyal_coupons' + rel
    html_options[:href] = url
    html_options[:target] = "_top"
    super(name, {}, html_options)
  else 
    super(name, options, html_options)
  end
end

#show_header_messagesObject



19
20
21
# File 'lib/sharkapps/view_helpers.rb', line 19

def show_header_messages
  
end

#show_trial_infoObject



15
16
17
# File 'lib/sharkapps/view_helpers.rb', line 15

def show_trial_info
  render :partial => "shared/trial_info"
end