Sha256: cf541dc6f6cf8bc3456244f5a6e8787ce28b6cb28c99cd82fbabbbd30a609262
Contents?: true
Size: 237 Bytes
Versions: 195
Compression:
Stored size: 237 Bytes
Contents
def path_to(page_name) case page_name when /the homepage/i root_path when /login/i login_path # Add more page name => path mappings here else raise "Can't find mapping from \"#{page_name}\" to a path." end end
Version data entries
195 entries across 195 versions & 1 rubygems