Sha256: f3b79bd0708711c874ebf4e3c079c8771ee6fc291b4811fbe4eb8547d2c7bfcf
Contents?: true
Size: 538 Bytes
Versions: 5
Compression:
Stored size: 538 Bytes
Contents
module NavigationHelpers def path_to(page_name) 'http://localhost:4567' + case page_name when /the index page/ '/' when /the form page/ '/form' when /the table page/ '/table' when /the upload page/ '/upload' when /the protected page/ '/protected' when /the blank form/ '/blank_form' else raise "Can't find mapping from \"#{page_name}\" to a path.\n" + "Now, go and add a mapping in #{__FILE__}" end end end World(NavigationHelpers)
Version data entries
5 entries across 5 versions & 1 rubygems