def title(*args)
      content_for :title do
        if args.first.is_a?(Symbol) && (args[1].respond_to?(:model_name) || args[1].class.respond_to?(:model_name))
          model = args[1].respond_to?(:model_name) ? args[1] : args[1].class
          if args.first == :index
            t('cmtool.action.index.title', models: model.model_name.human_plural)
          else
            t("cmtool.action.#{args.first}.title", model: model.model_name.human)
          end
        else
          raise 'Imporoper title declaration'
          args.first
        end
      end
    end
def title(*args)
      content_for :title do
        if args.first.is_a?(Symbol) && (args[1].respond_to?(:model_name) || args[1].class.respond_to?(:model_name))
          model = args[1].respond_to?(:model_name) ? args[1] : args[1].class
          if args.first == :index
            t('cmtool.action.index.title', models: model.model_name.human_plural)
          else
            t("cmtool.action.#{args.first}.title", model: model.model_name.human)
          end
        else
          raise 'Imporoper title declaration'
          args.first
        end
      end
    end
Set the page title, allow setting a resource title like:
   - title :index, Album
 or
   - title :show, Album
 or normal text behaviour:
   - title "Home"