Module: Admin::BaseHelper
- Included in:
- BaseController
- Defined in:
- app/helpers/admin/base_helper.rb
Instance Method Summary collapse
Instance Method Details
#render_subnav ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'app/helpers/admin/base_helper.rb', line 4 def if content_for?(:subnav) yield(:subnav) elsif File.exists?(File.join(File.dirname(__FILE__),'..','..','views',params[:controller],'_subnav.erb')) render(:partial=> 'subnav') else render(:partial=> 'admin/shared/subnav') end end |