From 51f21b73b169b5f99ce2d367c4295ae15a848a3e Mon Sep 17 00:00:00 2001 From: pixeldesu Date: Fri, 17 Jul 2015 20:57:48 +0200 Subject: [PATCH] fix broken route --- config/routes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index 3203aa7c..f9521ebe 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -100,7 +100,7 @@ Rails.application.routes.draw do match '/notifications(/:type)', to: 'notifications#index', via: :get, as: :notifications, defaults: {type: 'all'} match '/inbox', to: 'inbox#show', via: 'get' - match '/inbox/:author/:page', to: 'inbox#show', via: 'get' + match '/inbox/:author(/:page)', to: 'inbox#show', via: 'get' match '/user/:username(/p/:page)', to: 'user#show', via: 'get', defaults: {page: 1} match '/@:username(/p/:page)', to: 'user#show', via: 'get', as: :show_user_profile_alt, defaults: {page: 1}