From 560fd1bb875b65765f7886eda1aaf528c545610e Mon Sep 17 00:00:00 2001 From: Ahmet Sezgin Duran Date: Tue, 10 Sep 2013 13:03:22 +0300 Subject: [PATCH] #24 Clean up code and add login links to README.md --- CHANGELOG.md | 1 + README.md | 4 ++++ db/seeds.rb | 31 +++++++++++++++---------------- yakut_test | 0 4 files changed, 20 insertions(+), 16 deletions(-) create mode 100644 yakut_test diff --git a/CHANGELOG.md b/CHANGELOG.md index 73120d8..d0ef15c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ #### [Current] #### + * [c581aa2](../../commit/c581aa2) - __(Ahmet Sezgin Duran)__ [#24](../../issues/24) Create default users for development and update README.md * [1943cab](../../commit/1943cab) - __(Muhammet DİLEK)__ [#20](../../issues/20) edit and new page added * [6206a77](../../commit/6206a77) - __(Muhammet DİLEK)__ [#20](../../issues/20) pagination view added * [3c7bf81](../../commit/3c7bf81) - __(Muhammet DİLEK)__ [#20](../../issues/20) ransack form added diff --git a/README.md b/README.md index 53094f9..50998dd 100644 --- a/README.md +++ b/README.md @@ -17,11 +17,15 @@ You must have Admin: * Email: admin@yakut.org, Password: '12341234' +Login on: "http://localhost:3000/hq/dashboard.html" + Users: * Email: user1@yakut.org, Password: '12341234' * Email: user2@yakut.org, Password: '12341234' * Email: user3@yakut.org, Password: '12341234' +Login on: "http://localhost:3000/users/sign_in" + ## CONTACT * [Twitter](https://twitter.com/yakutproject) diff --git a/db/seeds.rb b/db/seeds.rb index 7738904..a26fa3c 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -5,24 +5,23 @@ # # cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) # Mayor.create(name: 'Emanuel', city: cities.first) - if Rails.env.development? - admin = Admin.create(email: 'admin@yakut.org', - password: '12341234', - password_confirmation: '12341234') + admin = Admin.create!(email: 'admin@yakut.org', + password: '12341234', + password_confirmation: '12341234') - user1 = User.create(name: 'User 1', - email: 'user1@yakut.org', - password: '12341234', - password_confirmation: '12341234') + user1 = User.create!(name: 'User 1', + email: 'user1@yakut.org', + password: '12341234', + password_confirmation: '12341234') - user2 = User.create(name: 'User 2', - email: 'user2@yakut.org', - password: '12341234', - password_confirmation: '12341234') + user2 = User.create!(name: 'User 2', + email: 'user2@yakut.org', + password: '12341234', + password_confirmation: '12341234') - user3 = User.create(name: 'User 3', - email: 'user3@yakut.org', - password: '12341234', - password_confirmation: '12341234') + user3 = User.create!(name: 'User 3', + email: 'user3@yakut.org', + password: '12341234', + password_confirmation: '12341234') end \ No newline at end of file diff --git a/yakut_test b/yakut_test new file mode 100644 index 0000000..e69de29