Module Cms::PathHelper
In: app/helpers/cms/path_helper.rb

Methods

Public Instance methods

[Source]

    # File app/helpers/cms/path_helper.rb, line 19
19:     def cms_connectable_path(connectable, options={})
20:       if Portlet === connectable
21:         cms_portlet_path(connectable)
22:       else
23:         [:cms, connectable]
24:       end
25:     end

[Source]

   # File app/helpers/cms/path_helper.rb, line 3
3:     def cms_index_path_for(resource, options={})
4:       send("cms_#{resource_collection_name(resource).pluralize}_path", options)
5:     end

[Source]

   # File app/helpers/cms/path_helper.rb, line 7
7:     def cms_index_url_for(resource, options={})
8:       send("cms_#{resource_collection_name(resource).pluralize}_url", options)
9:     end

[Source]

    # File app/helpers/cms/path_helper.rb, line 11
11:     def cms_new_path_for(resource, options={})
12:       send("new_cms_#{resource_collection_name(resource)}_path", options)
13:     end

[Source]

    # File app/helpers/cms/path_helper.rb, line 15
15:     def cms_new_url_for(resource, options={})
16:       send("new_cms_#{resource_collection_name(resource)}_url", options)
17:     end

[Source]

    # File app/helpers/cms/path_helper.rb, line 27
27:     def edit_cms_connectable_path(connectable, options={})
28:       if Portlet === connectable
29:         edit_cms_portlet_path(connectable, options)
30:       else
31:         polymorphic_path([:edit, :cms, connectable], options)        
32:       end
33:     end

[Validate]