Module: RegPathHelper

Defined in:
lib/reg_path/helpers/reg_path_helper.rb

Instance Method Summary collapse

Instance Method Details

#participation_header(options = {}) ⇒ Object



7
8
9
10
11
12
13
14
15
16
# File 'lib/reg_path/helpers/reg_path_helper.rb', line 7

def participation_header(options={})
  name = ""
  name << ", #{options[:name]}" if options[:name]
  
  thank_you_text = options[:thank_you_text] || "Thank you"
  participation_text = options[:participation_text] || "Thank you for participating"

  terminator = options[:terminator] || "!"
  (request.post? ? participation_text : thank_you_text) << name << terminator
end

#progress_bar(step, num_steps) ⇒ Object



3
4
5
# File 'lib/reg_path/helpers/reg_path_helper.rb', line 3

def progress_bar(step, num_steps)
  render(:partial => 'common/progress_bar', :locals=>{:num_steps=>num_steps, :step=>step}) if num_steps && step
end


18
19
20
# File 'lib/reg_path/helpers/reg_path_helper.rb', line 18

def skip_this_link
  link_to 'Skip this', :action=>:offers
end