From 9e87f40e1c753b46ea9603d287ac94e7b00ae1b0 Mon Sep 17 00:00:00 2001 From: chiu Date: Fri, 17 Sep 2021 14:45:47 +0800 Subject: [PATCH] fix error --- app/views/admin/event_news/_index.html.erb | 2 +- config/initializers/scheduler.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/admin/event_news/_index.html.erb b/app/views/admin/event_news/_index.html.erb index cd1283f..f3e1887 100644 --- a/app/views/admin/event_news/_index.html.erb +++ b/app/views/admin/event_news/_index.html.erb @@ -94,6 +94,6 @@ <%= content_tag :div, class: "bottomnav clearfix" do content_tag(:div, paginate(@event_news), class: "pagination pagination-centered") + - content_tag(:div, link_to(t(:new_),new_event_news_path, :class=>"btn btn-primary"), class: "pull-right") + content_tag(:div, link_to(t(:new_),new_admin_event_news_path, :class=>"btn btn-primary"), class: "pull-right") end %> diff --git a/config/initializers/scheduler.rb b/config/initializers/scheduler.rb index 24f6666..23ad50c 100644 --- a/config/initializers/scheduler.rb +++ b/config/initializers/scheduler.rb @@ -5,5 +5,5 @@ scheduler = Rufus::Scheduler.new #return if defined?(Rails::Console) || Rails.env.test? || File.split($0).last == 'rake' scheduler.cron '43 2 * * *' do - system('bundle exec rake bulletin:remove_preview_bulletins') + system('bundle exec rake event_news:remove_preview_event_news') end