Sha256: c86eb2ed50c1adec0c3cdbbcdca3f61a313f7f9f157ce06acfc2fba7334f6225
Contents?: true
Size: 327 Bytes
Versions: 21
Compression:
Stored size: 327 Bytes
Contents
module NavigationHelpers def path_to(page_name) case page_name when /the homepage/ root_path # Add more page name => path mappings here else raise "Can't find mapping from \"#{page_name}\" to a path." end end end World do |world| world.extend NavigationHelpers world end
Version data entries
21 entries across 21 versions & 3 rubygems