From b54bbe616849f814ff80b276da5a888d8d6172b5 Mon Sep 17 00:00:00 2001 From: Tyrel Souza Date: Wed, 14 May 2014 14:30:17 -0400 Subject: [PATCH] added more editing paths --- app/views/accounts/index.html.erb | 2 +- config/routes.rb | 2 +- db/schema.rb | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/accounts/index.html.erb b/app/views/accounts/index.html.erb index e1f6242..341a8b6 100644 --- a/app/views/accounts/index.html.erb +++ b/app/views/accounts/index.html.erb @@ -1,6 +1,6 @@

Users


-

To edit your own user, use the Profile Option.

+

To edit your own user, use the Profile Option. To change your admin password, visit the <%= link_to "admin profile edit page", edit_admin_registration_path %>.

diff --git a/config/routes.rb b/config/routes.rb index 910d437..242f49c 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,5 +1,5 @@ Vidpush::Application.routes.draw do - resources :accounts, :controller => "accounts", path: "accounts", model: :users + resources :accounts, :controller => "accounts", path: "accounts" devise_for :admins devise_for :users diff --git a/db/schema.rb b/db/schema.rb index dedd515..6b4652f 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -97,8 +97,8 @@ ActiveRecord::Schema.define(version: 20140505153412) do t.string "authentication_token" end - add_index "accounts", ["email"], name: "index_users_on_email", unique: true, using: :btree - add_index "accounts", ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true, using: :btree + add_index "users", ["email"], name: "index_users_on_email", unique: true, using: :btree + add_index "users", ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true, using: :btree create_table "videolistings", force: true do |t| t.string "videocode"