Sha256: 5450d4076a3a0c714ecd5d029a3f8c3eb7e3626749cc164b3e8908e0ca004037
Contents?: true
Size: 564 Bytes
Versions: 8
Compression:
Stored size: 564 Bytes
Contents
require_relative 'application_controller' require_relative '../views/<%= object.name %>' module <%= object.app_name %> class <%= object.name_as_class %>Controller < <%= object.app_name -%>::ApplicationController controller :<%= object.name %> action :list action :show # add more actions and implement or remove existing actions def initialize end def list end def show(*args) <%= object.app_name %>::<%= object.name_as_class %>View.render(*args) end private def object nil end end end
Version data entries
8 entries across 8 versions & 1 rubygems