Module: PagesHelper

Defined in:
app/helpers/pages_helper.rb

Instance Method Summary collapse

Instance Method Details

#tkhed(content) ⇒ Object



2
3
4
5
6
7
8
9
# File 'app/helpers/pages_helper.rb', line 2

def tkhed(content)
  content = content.gsub /\(-: contact_us_form :-\)/, render('contacts/form') if content.match(/\(-: contact_us_form :-\)/)
  # from what will be the tkh_yoga_center_gem
  content = content.gsub /\(-: dropin_class_schedule :-\)/, render('dropin_classes/schedule') if content.match(/\(-: dropin_class_schedule :-\)/)
  # from what will be the tkh_upcoming_events_gem
  content = content.gsub /\(-: upcoming_events_list :-\)/, render('events/upcoming_events_list') if content.match(/\(-: upcoming_events_list :-\)/)
  content
end