Sha256: 914c93aaec993093a9ec12c8206380106e20fe5042e6393869cf9ffe13406f2b

Contents?: true

Size: 483 Bytes

Versions: 15

Compression:

Stored size: 483 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 list
    end

    def show
      <%= object.app_name %>::<%= object.name_as_class %>View.render(params)
    end

  end

end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
vedeu_cli-0.0.8 lib/vedeu/cli/templates/application/app/controllers/name.erb
vedeu_cli-0.0.7 lib/vedeu/cli/templates/application/app/controllers/name.erb
vedeu_cli-0.0.6 lib/vedeu/cli/templates/application/app/controllers/name.erb
vedeu_cli-0.0.5 lib/vedeu/cli/templates/application/app/controllers/name.erb
vedeu_cli-0.0.4 lib/vedeu/cli/templates/application/app/controllers/name.erb
vedeu_cli-0.0.3 lib/vedeu/cli/templates/application/app/controllers/name.erb
vedeu_cli-0.0.2 lib/vedeu/cli/templates/application/app/controllers/name.erb
vedeu_cli-0.0.1 lib/vedeu/cli/templates/application/app/controllers/name.erb
vedeu-0.5.10 lib/vedeu/cli/generator/templates/application/app/controllers/name.erb
vedeu-0.5.9 lib/vedeu/cli/generator/templates/application/app/controllers/name.erb
vedeu-0.5.8 lib/vedeu/cli/generator/templates/application/app/controllers/name.erb
vedeu-0.5.7 lib/vedeu/cli/generator/templates/application/app/controllers/name.erb
vedeu-0.5.6 lib/vedeu/cli/generator/templates/application/app/controllers/name.erb
vedeu-0.5.5 lib/vedeu/cli/generator/templates/application/app/controllers/name.erb
vedeu-0.5.4 lib/vedeu/cli/generator/templates/application/app/controllers/name.erb