Sha256: f71510a0e6f88e43f7c2dbdeaf4c6f96151cb5bbd6868c8f589b7f55ae290982

Contents?: true

Size: 478 Bytes

Versions: 23

Compression:

Stored size: 478 Bytes

Contents

module Manage::StructuresHelper

  def edit_structure_record_path(structure)                   
    case structure.structure_type
      when StructureType.page then edit_manage_structure_page_path(:structure_id=>structure.id)      
      when StructureType.posts then manage_structure_posts_path(:structure_id => structure.id)
      when StructureType.main then '#'
      when StructureType.redirect then structure.slug
      when StructureType.group then '#'
    end
  end
end

Version data entries

23 entries across 18 versions & 5 rubygems

Version Path
sunrise-core-0.2.2 spec/dummy/app/helpers/manage/structures_helper.rb
sunrise-core-0.2.2 lib/generators/sunrise/templates/helpers/manage/structures_helper.rb
sunrise-core-0.2.1 lib/generators/sunrise/templates/helpers/manage/structures_helper.rb
sunrise-core-0.2.1 spec/dummy/app/helpers/manage/structures_helper.rb
sunrise-core-0.2.1 spec/tmp/app/helpers/manage/structures_helper.rb
sunrise-widgets-0.1.1 spec/dummy/app/helpers/manage/structures_helper.rb
sunrise-locales-0.1.0 spec/dummy/app/helpers/manage/structures_helper.rb
sunrise-core-0.2.0 lib/generators/sunrise/templates/helpers/manage/structures_helper.rb
sunrise-core-0.2.0 spec/dummy/app/helpers/manage/structures_helper.rb
sunrise-core-0.2.0 spec/tmp/app/helpers/manage/structures_helper.rb
sunrise-widgets-0.1.0 spec/dummy/app/helpers/manage/structures_helper.rb
sunrise-questions-0.1.0 spec/dummy/app/helpers/manage/structures_helper.rb
sunrise-core-0.1.5 lib/generators/sunrise/templates/helpers/manage/structures_helper.rb
sunrise-core-0.1.4 lib/generators/sunrise/templates/helpers/manage/structures_helper.rb
sunrise-core-0.1.3 lib/generators/sunrise/templates/helpers/manage/structures_helper.rb
sunrise-core-0.1.2 lib/generators/sunrise/templates/helpers/manage/structures_helper.rb
sunrise-core-0.1.1 lib/generators/sunrise/templates/helpers/manage/structures_helper.rb
sunrise-core-0.1.0 lib/generators/sunrise/templates/helpers/manage/structures_helper.rb
freeberry-0.3.0 lib/generators/freeberry/base/templates/helpers/manage/structures_helper.rb
freeberry-0.2.9 lib/generators/freeberry/base/templates/helpers/manage/structures_helper.rb