From 2b9c637c0fc67cb5f44717cb9cde78dcf5a352dc Mon Sep 17 00:00:00 2001 From: Alaina Date: Wed, 20 Jul 2016 11:37:14 -0700 Subject: [PATCH] added information into the README.md file --- README.md | 23 +++++++++++++++++++++++ app/controllers/users_controller.rb | 1 + db/schema.rb | 2 +- 3 files changed, 25 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 011e172..31eb33e 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,29 @@ ## Google Custom Search Setup +**Signing Up as a New User** + +- Enter in the new users first name, last name, email, password, and password confirmation + +- A user verification email will be sent to the new users email + +- Once the user has been verified, they can continue onto the site signed in + +- User will be redirected to home page + +**Signing In** + +- Enter existing user email and password + +- Will be redirected to the sites home page + +**Creating an Organization** + +- Enter the Organization name, address, description, employee count, tech count, a link for website and twitter account + +- Able to upload image files for your organization + + **Setting up Google API key** https://console.developers.google.com/project diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index c4e21e2..a921672 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -17,6 +17,7 @@ def create session[:user_id] = service.user.id render "users/account_verifications/create" else + @user = service.user render :new end end diff --git a/db/schema.rb b/db/schema.rb index 7dd44eb..af093d4 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -105,11 +105,11 @@ t.integer "user_id" t.float "longitude" t.float "latitude" - t.string "logo" t.string "image" t.string "image2" t.string "image3" t.string "image4" + t.string "logo" end add_index "organizations", ["user_id"], name: "index_organizations_on_user_id", using: :btree