diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb
index f8f2b3f..6b21eb1 100644
--- a/app/controllers/projects_controller.rb
+++ b/app/controllers/projects_controller.rb
@@ -13,7 +13,7 @@ class ProjectsController < ApplicationController
uc = Projects_user.where(:project_id => pid).size
sc = Share.where(:project_id => pid).size
data = []
- Project.find(pid) do |i|
+ Project.find(pid) do |i|
data += [{
:id => i.id,
:name => i.name,
diff --git a/db/seeds.rb b/db/seeds.rb
index 2545edf..0625414 100644
--- a/db/seeds.rb
+++ b/db/seeds.rb
@@ -10,7 +10,7 @@ users = [
{:name => '陈翊', :password => '123456', :email => '1085730215@qq.com', :phone => '18269771988', :created_at => "2016/12/28", :updated_at => "2016/12/27"}
]
projects = [
- {:name => 'AAAA',:content => 'i like helloworld',:mission_count => '20',:users_count => '15',:shares_count => '15'}
+ {:id=>'1001',:name => 'AAAA',:content => 'i like helloworld',:mission_count => '20',:users_count => '15',:shares_count => '15'}
]
users.each do |user|
diff --git a/public/index.html b/public/index.html
index 7ca1a24..2f3aeaa 100644
--- a/public/index.html
+++ b/public/index.html
@@ -30,15 +30,19 @@
-
+