Module: AboutPage::AboutHelper
- Defined in:
- app/helpers/about_page/about_helper.rb
Instance Method Summary collapse
Instance Method Details
#render_about_pane(key, profile) ⇒ Object
3 4 5 6 7 8 |
# File 'app/helpers/about_page/about_helper.rb', line 3 def render_about_pane key, profile partial = (profile.class.partial rescue nil) || key.to_s render :partial => partial, :locals => { :key => key, :profile => profile } rescue render :partial => 'exception', :locals => { :key => key, :profile => profile, :exception => $! } end |