From 9c31d9d6b494b7a44a1f65f2dfce7ce819096f1d Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Thu, 4 Feb 2016 23:33:07 +0100 Subject: [PATCH] remove the edit page - it's not used anyway --- app/views/layouts/_header.html.haml | 8 ++------ app/views/users/edit.html.haml | 13 ------------- config/routes.rb | 2 +- 3 files changed, 3 insertions(+), 20 deletions(-) delete mode 100644 app/views/users/edit.html.haml diff --git a/app/views/layouts/_header.html.haml b/app/views/layouts/_header.html.haml index 0a3efe1..fc714df 100644 --- a/app/views/layouts/_header.html.haml +++ b/app/views/layouts/_header.html.haml @@ -23,12 +23,8 @@ %li= link_to "List", products_path %li= link_to "Add product" , barcode_products_path %li= link_to "Barcodes", barcodes_path - %li.dropdown - %a.dropdown-toggle{"data-toggle" => "dropdown", href: "#"} - Logged in as #{current_user.name} - %b.caret - %ul.dropdown-menu - %li= link_to "Edit profile", edit_user_path(current_user) + %li + %p.navbar-text Logged in as #{current_user.name} %li %p.navbar-text Balance: diff --git a/app/views/users/edit.html.haml b/app/views/users/edit.html.haml deleted file mode 100644 index e0884e3..0000000 --- a/app/views/users/edit.html.haml +++ /dev/null @@ -1,13 +0,0 @@ -.row - = render 'sidebar' - .col-sm-9 - %h2 Edit your settings - = f_form_for @user do |f| - = f.error_messages - = f.file_field :avatar - %p - If you check this option, nobody will be able to order stuff for you through koelkast. - Only on your account things can be ordered. - %p - = f.check_box :private - = f.submit "Update" diff --git a/config/routes.rb b/config/routes.rb index 1663591..316ebfb 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -17,7 +17,7 @@ Rails.application.routes.draw do end end - resources :users, only: [:show, :edit, :update] do + resources :users, only: [:show] do resources :orders, only: [:new, :create, :destroy] member do get 'quickpay' => 'users#quickpay'