Soshigal::Application.routes.draw do

  root to: 'albums#index'

  resources :albums, except: [:index], shallow: true do
    get 'page/:page', action: :show, on: :member
    resources :images, only: [:create, :destroy]
    resources :comments, only: [:create, :destroy, :update]
    resources :favorites, only: [:create, :destroy]
    resource  :archive, only: [:create]
  end

  resources :sources, only: [:show]

  mount Soulmate::Server, at: '/autocomplete'

  devise_for :users

  ActiveAdmin.routes(self)
end

Soshigal::Application.routes.draw do

  root to: 'albums#index'

  resources :albums, except: [:index], shallow: true do
    get 'page/:page', action: :show, on: :member, as: :paginated
    resources :images, only: [:create, :destroy]
    resources :comments, only: [:create, :destroy, :update]
    resources :favorites, only: [:create, :destroy]
    resource  :archive, only: [:create]
  end

  resources :sources, only: [:show]

  mount Soulmate::Server, at: '/autocomplete'

  devise_for :users

  ActiveAdmin.routes(self)
end

Add a named route from paginated albums
Add a named route from paginated albums
