Sha256: db27558b1a997a9215cccc5ce61f888f50aabb7d1f6a7615cfef5d058b52fe3d
Contents?: true
Size: 1.92 KB
Versions: 4
Compression:
Stored size: 1.92 KB
Contents
module Caterpillar #:nodoc: # Routes for Portlet Test Bench. module Routing module MapperExtensions # :nodoc: def caterpillar @set.add_named_route( 'portlet_test_bench', 'caterpillar/test_bench', {:controller => 'Caterpillar::Application'}) @set.add_route( 'caterpillar/test_bench/http_methods/:action', {:controller => 'Caterpillar::HttpMethods'}) @set.add_route( 'caterpillar/test_bench/javascript/:action', {:controller => 'Caterpillar::Js'}) @set.add_route( 'caterpillar/test_bench/css/:action', {:controller => 'Caterpillar::Css'}) @set.add_route( 'caterpillar/test_bench/login/:action', {:controller => 'Caterpillar::Login'}) @set.add_route( 'caterpillar/test_bench/resource/:action', {:controller => 'Caterpillar::Resource'}) @set.add_route( 'caterpillar/test_bench/session/:action', {:controller => 'Caterpillar::Session'}) @set.add_route( 'caterpillar/test_bench/user/:action', {:controller => 'Caterpillar::User'}) @set.add_route( 'caterpillar/test_bench/liferay/:action', {:controller => 'Caterpillar::Liferay'}) # Liferay session variables. # # Watch out for route conflicts! # If the route would be /something/:uid, # a later defined route /something/:gid would never match. @set.add_route( 'caterpillar/test_bench/liferay/:action/uid/:uid', {:controller => 'Caterpillar::Liferay'}) @set.add_route( 'caterpillar/test_bench/liferay/:action/gid/:gid', {:controller => 'Caterpillar::Liferay'}) @set.add_route( 'caterpillar/test_bench/liferay/:action/uid/:uid/gid/:gid', {:controller => 'Caterpillar::Liferay'}) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems