User app error handling upgrades

This commit is contained in:
2014-08-25 16:56:30 +02:00
parent 7a16650129
commit 1eeda440ab
11 changed files with 86 additions and 6 deletions
+10
View File
@@ -90,3 +90,13 @@ en:
closed: 'Closed'
lists:
show_more: Show more
app:
error:
title: There is a problem with the application
body: Please try to restart
errors:
404:
model:
message: Cannot find %{model} with id %{id}
general:
message: Cannot find resource
+11
View File
@@ -88,3 +88,14 @@ nl:
closed: 'Afgesloten'
lists:
show_more: Meer tonen
app:
error:
title: Er is een probleem met de applicatie
body: Herstart de applicatie om het op te lossen
errors:
404:
model:
message: %{model} met id %{id} kan niet worden gevonden
general:
message: Data niet beschikbaar
+2
View File
@@ -19,6 +19,8 @@ Qwaiter::Application.routes.draw do
root to: 'users#index'
end
post '/user_app' => 'dashboard#user_app_log' #TODO: separate high speed app at log.mozo.bar
# SUPPLIER
get '/supplier' => 'supplier#home', as: :supplier_root
get '/supplier/active_orders' => 'supplier#active_orders', as: :supplier_active_orders