Top Level Namespace
Defined Under Namespace
Modules: Annotatable, ApplicationHelper, InheritableClassAttributes, LocalTime, LoginSystem, Radiant, Rails, Registry, Simpleton, SiteHelper, StandardTags Classes: ApplicationController, EnvDumpPage, ExtensionControllerGenerator, ExtensionGenerator, ExtensionMailerGenerator, ExtensionMigrationGenerator, ExtensionModelGenerator, FileNotFoundPage, Hash, InstanceGenerator, Layout, MethodObserver, Object, Page, PageContext, PagePart, SiteController, Snippet, Status, String, Symbol, TaskSupport, TextFilter, User, UserActionObserver
Constant Summary collapse
- RADIANT_ROOT =
File.(File.join(File.dirname(__FILE__), ".."))
- RAILS_ROOT =
Don’t change this file! Configure your app in config/environment.rb and config/environments/*.rb
File.("#{File.dirname(__FILE__)}/..")
Instance Method Summary collapse
Instance Method Details
#path_to(page_name) ⇒ Object
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/generators/extension/templates/cucumber_paths.rb', line 1 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 |