get "/categories/:year/:month/:day/:id", to: "categories#whateveryouwant"
resources :post_categories, path: '', only: :show do
resources :posts, path: '/:year/:month/:day', only: :show,
constraints: { year: /\d{4}/, month: /\d{2}/, day: /\d{2}/ }
end
#config/environments/development.rb
class Application < Rails::Application
config.web_console.whitelisted_ips = MY_IP
end