|
|
@ -207,7 +207,7 @@ class ShixunsController < ApplicationController
|
|
|
|
@new_shixun = Shixun.new
|
|
|
|
@new_shixun = Shixun.new
|
|
|
|
@new_shixun.attributes = @shixun.attributes.dup.except("id","user_id","visits","gpid","status", "identifier", "averge_star",
|
|
|
|
@new_shixun.attributes = @shixun.attributes.dup.except("id","user_id","visits","gpid","status", "identifier", "averge_star",
|
|
|
|
"homepage_show","repo_name", "myshixuns_count", "challenges_count",
|
|
|
|
"homepage_show","repo_name", "myshixuns_count", "challenges_count",
|
|
|
|
"can_copy", "created_at", "updated_at")
|
|
|
|
"can_copy", "created_at", "updated_at", "public")
|
|
|
|
@new_shixun.user_id = User.current.id
|
|
|
|
@new_shixun.user_id = User.current.id
|
|
|
|
@new_shixun.averge_star = 5
|
|
|
|
@new_shixun.averge_star = 5
|
|
|
|
@new_shixun.identifier = generate_identifier Shixun, 8
|
|
|
|
@new_shixun.identifier = generate_identifier Shixun, 8
|
|
|
|