diff --git a/lib/tasks/new_site.rake b/lib/tasks/new_site.rake index 661f5b653..6a1978c1c 100644 --- a/lib/tasks/new_site.rake +++ b/lib/tasks/new_site.rake @@ -16,7 +16,7 @@ namespace :new_site do I18nVariable.create!( :document_class => 'language', :key => 'zh_tw', :en => 'Chinese', :zh_tw => '中文' ) Info.create!(key: "profile", built_in: true, disabled: false, title: {"zh_tw"=>"基本欄位", "en"=>"Basic Info"}, to_search: false) end - task :necessary_data, [:website_name] => :environment do + task :necessary_data, [:website_name] => :environment do |t, args| site = Site.first puts website_name = "#{args.website_name}" puts site.title = '#{website_name}'