Sha256: a22fb204c7d7966abe75ff3cbb0a719ae6310a81e6c9bd9fc9f2909f43b52525
Contents?: true
Size: 394 Bytes
Versions: 1
Compression:
Stored size: 394 Bytes
Contents
def path_to(page_name) case page_name when /the homepage/i root_path when /sitemap/i admin_pages_path when /login/i login_path when /preferences/i edit_admin_preferences_path when /snippets/i admin_snippets_path when /login/i login_path when /users/ admin_users_path else raise "Can't find mapping from \"#{page_name}\" to a path." end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
radiant-rc-0.9.0 | features/support/paths.rb |