Sha256: 1d5588ba1cc9de7cba8f2f5de77ec5ea6da0b1660bb5a804d8a1f74931972714

Contents?: true

Size: 322 Bytes

Versions: 9

Compression:

Stored size: 322 Bytes

Contents

module Spontaneous::Rack::Back
  class Index < Base
    include TemplateHelpers

    # Matches either:
    #   /@spontaneous
    #   /@spontaneous/
    #   /@spontaneous/xxx/edit
    #   /@spontaneous/xxx/preview
    #
    # where xxx is a numeric id
    get %r{\A(/?|/(\d+/?.*)?)\z} do
      erb :index
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
spontaneous-0.2.0.beta10 lib/spontaneous/rack/back/index.rb
spontaneous-0.2.0.beta9 lib/spontaneous/rack/back/index.rb
spontaneous-0.2.0.beta8 lib/spontaneous/rack/back/index.rb
spontaneous-0.2.0.beta7 lib/spontaneous/rack/back/index.rb
spontaneous-0.2.0.beta6 lib/spontaneous/rack/back/index.rb
spontaneous-0.2.0.beta5 lib/spontaneous/rack/back/index.rb
spontaneous-0.2.0.beta4 lib/spontaneous/rack/back/index.rb
spontaneous-0.2.0.beta3 lib/spontaneous/rack/back/index.rb
spontaneous-0.2.0.beta2 lib/spontaneous/rack/back/index.rb