Module: RegPathHelper
- Defined in:
- lib/reg_path/helpers/reg_path_helper.rb
Instance Method Summary collapse
- #participation_header(options = {}) ⇒ Object
- #progress_bar(step, num_steps) ⇒ Object
- #skip_this_link ⇒ Object
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(={}) name = "" name << ", #{options[:name]}" if [:name] thank_you_text = [:thank_you_text] || "Thank you" participation_text = [:participation_text] || "Thank you for participating" terminator = [: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 (step, num_steps) render(:partial => 'common/progress_bar', :locals=>{:num_steps=>num_steps, :step=>step}) if num_steps && step end |
#skip_this_link ⇒ Object
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 |