templates/component/controllers/main_controller.rb in volt-0.8.15 vs templates/component/controllers/main_controller.rb in volt-0.8.16

- old
+ new

@@ -6,12 +6,13 @@ def about # Add code for when the about view is loaded end private - # the main template contains a #template binding that shows another - # template. This is the path to that template. It may change based - # on the params._controller and params._action values. - def main_path - params._controller.or('main') + "/" + params._action.or('index') - end + + # the main template contains a #template binding that shows another + # template. This is the path to that template. It may change based + # on the params._controller and params._action values. + def main_path + params._controller.or('main') + '/' + params._action.or('index') + end end