Top Level Namespace
Defined Under Namespace
Modules: Annotatable, ApplicationHelper, InheritableClassAttributes, LoginSystem, MenuRenderer, NavigationHelpers, RadSocialHelper, Rails, ScopedHelper, Simpleton, SiteHelper, SitesHelper, SnippetTags, StandardTags, TrustyCms Classes: AdminsSite, AppBoot, ApplicationController, ApplicationMailer, Asset, AssetType, Boot, DeviseMailer, ExtensionControllerGenerator, ExtensionGenerator, ExtensionMailerGenerator, ExtensionMigrationGenerator, ExtensionModelGenerator, FileNotFoundPage, GemBoot, HamlFilter, Hash, InstanceGenerator, LanguageExtensionGenerator, Layout, MethodObserver, OpenStruct, Page, PageAttachment, PageContext, PageField, PagePart, RadSocialMailer, RailsPage, Site, SiteController, Snippet, SnippetFinder, SocialMailerController, Status, String, Symbol, TextFilter, TranslationSupport, TrustyCmsGenerator, User, UserActionObserver, VendorBoot
Constant Summary collapse
- TRUSTY_CMS_ROOT =
File.(File.join(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/language_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 |