lib/mdd/layout/helper.rb in mdd-2.0.1 vs lib/mdd/layout/helper.rb in mdd-2.0.2

- old
+ new

@@ -10,11 +10,16 @@ end module ClassMethods def select_layout Base.select_layout "#{request.path_parameters[:controller]}##{request.path_parameters[:action]}" - end - end + end + + def current_page + "#{request.path_parameters[:controller].gsub('/', '_').underscore}_#{request.path_parameters[:action].underscore}" + end + + end end end end \ No newline at end of file