Module: AboutPage::AboutHelper

Defined in:
app/helpers/about_page/about_helper.rb

Instance Method Summary collapse

Instance Method Details

#partial_for_about_key(key) ⇒ Object



9
10
11
# File 'app/helpers/about_page/about_helper.rb', line 9

def partial_for_about_key key
  about_page_partials[key] || key.to_s
end

#render_about_pane(key, profile) ⇒ Object



3
4
5
6
7
# File 'app/helpers/about_page/about_helper.rb', line 3

def render_about_pane key, profile
  render :partial => partial_for_about_key(key), :locals => { :key => key, :profile => profile } 
rescue 
  render :partial => 'exception', :locals => { :key => key, :profile => profile, :exception => $! }
end