Sha256: cfa90a144d3f1ae52585d8f6067b07b6c42ea3103e581debf576dad0c08efb84
Contents?: true
Size: 287 Bytes
Versions: 4
Compression:
Stored size: 287 Bytes
Contents
module Rulers class Application def get_controller_and_action(env) _, cont, action, after = env["PATH_INFO"].split('/', 4) cont = cont.capitalize # "People" cont += "Controller" # "PeopleController" [Object.const_get(cont), action] end end end
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
erik_rulers-0.0.5 | lib/rulers/routing.rb |
erik_rulers-0.0.4 | lib/rulers/routing.rb |
erik_rulers-0.0.3 | lib/rulers/routing.rb |
rulers_seanfred-0.0.2 | lib/rulers/routing.rb |