Module CmsHelper
In: app/helpers/cms_helper.rb

Methods

Attributes

environment  [R] 

Public Instance methods

[Source]

   # File app/helpers/cms_helper.rb, line 3
3:   def link_to_new_article(mime_type)
4:     action = mime_type_to_action_name(mime_type) + '_new'
5:     button('new', _("New %s") % mime_type, :action => action, :parent_id => params[:parent_id])
6:   end

[Source]

    # File app/helpers/cms_helper.rb, line 8
 8:   def mime_type_to_action_name(mime_type)
 9:     mime_type.gsub('/', '_').gsub('-', '')
10:   end

[Validate]