Sha256: d5f66ad51238e561ff0ea5f794d64197a9bc76ed16c8eaf8976f96abffb3590f

Contents?: true

Size: 1.35 KB

Versions: 1

Compression:

Stored size: 1.35 KB

Contents

Volontariat.Router.reopen location: 'hash'

Volontariat.Router.map ->
  @_super
  
  @route 'communities', path: '/communities/page/:page'
  
  @resource 'community', path: '/communities/:slug', ->
    @route 'categories', path: 'categories/page/:page'
    
    @route 'category', path: 'categories/:category_slug', ->
      @route 'feedbacks', path: 'feedbacks/page/:page'
      @route 'problems', path: 'problems/page/:page'
      @route 'questions', path: 'questions/page/:page'
      @route 'ideas', path: 'ideas/page/:page'
      @route 'praises', path: 'praises/page/:page'
      @route 'announcements', path: 'announcements/page/:page'
  
    @route 'new_category', path: 'categories/new'
    @route 'edit_category', path: 'categories/:category_slug/edit'
    
    @route 'feedbacks', path: 'feedbacks/page/:page'
    @route 'problems', path: 'problems/page/:page'
    @route 'questions', path: 'questions/page/:page'
    @route 'ideas', path: 'ideas/page/:page'
    @route 'praises', path: 'praises/page/:page'
    @route 'announcements', path: 'announcements/page/:page'
    
    @route 'new_feedback', path: 'feedbacks/new'
    @route 'feedback', path: 'feedbacks/:feedback_slug/page/:page'
    @route 'edit_feedback', path: 'feedbacks/:feedback_slug/edit'
    
  @route 'new_community', path: '/communities/new'
  @route 'edit_community', path: '/communities/:slug/edit'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
voluntary_feedback-0.1.0 app/assets/javascripts/voluntary_feedback/router.js.coffee