Sha256: 3a566d271fec2121e1237abd22e8e67b1c8c53694082d06c26d1962042780340

Contents?: true

Size: 416 Bytes

Versions: 10

Compression:

Stored size: 416 Bytes

Contents

require 'camping'

Camping.goes :Loader

$LOAD_PATH << File.dirname(__FILE__)

Camping.goes :Donuts

module Donuts
  module Controllers
    class Index
      def get
        render :index
      end
    end
    class Post
      def get
        render :post
      end
    end
  end

  # how to add a layout to every page
  module Views

    def index
      "_why"
    end

    def post
      "_why"
    end

  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
camping-3.2.6 test/apps/loader/camp.rb
camping-3.2.5 test/apps/loader/camp.rb
camping-3.2.4 test/apps/loader/camp.rb
camping-3.2.3 test/apps/loader/camp.rb
camping-3.2.2 test/apps/loader/camp.rb
camping-3.2.1 test/apps/loader/camp.rb
camping-3.2.0 test/apps/loader/camp.rb
camping-3.1.3 test/apps/loader/camp.rb
camping-3.1.2 test/apps/loader/camp.rb
camping-3.1.0 test/apps/loader/camp.rb