lib/sugar/actionview.rb in krasivotokak-sugar-0.0.12 vs lib/sugar/actionview.rb in krasivotokak-sugar-0.0.13

- old
+ new

@@ -10,11 +10,14 @@ VIEW_PLACEHOLDERS[action_name] || action_name end # Return page title for use in layout def page_title(title = nil) - @title ||= title || t("#{controller_name}.#{view_name}.title") - @title + @page_title = if title + title + else + @page_title || t("#{controller_name}.@{view_name}.title") + end end # Put submit with proper text def submit(form, title = nil) title ||= t("#{controller.controller_name}.#{view_name}.submit")