Sha256: e6ef2af294c4b010d3b196c6202dfa323927f41f24a9fd0950a8518449f09f06
Contents?: true
Size: 499 Bytes
Versions: 1
Compression:
Stored size: 499 Bytes
Contents
module NavigationHelpers def path_to(page_name) case page_name when /the homepage/i root_path when /the sign up page/i new_user_path when /the sign in page/i new_session_path when /the password reset request page/i new_password_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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
thoughtbot-clearance-0.4.8 | generators/clearance_features/templates/features/support/paths.rb |