Sha256: dfddae6916cc7a9a68fedf1ae914f68942c3b34abb3bd315c583abbd3fc52b7e
Contents?: true
Size: 514 Bytes
Versions: 2
Compression:
Stored size: 514 Bytes
Contents
# frozen_string_literal: true 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 list end def show <%= object.app_name %>::<%= object.name_as_class %>View.render(params) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vedeu_cli-0.0.10 | lib/vedeu/cli/templates/application/app/controllers/name.erb |
vedeu_cli-0.0.9 | lib/vedeu/cli/templates/application/app/controllers/name.erb |