fix error

This commit is contained in:
chiu 2021-09-17 14:45:47 +08:00
parent 90ebe67bad
commit 9e87f40e1c
2 changed files with 2 additions and 2 deletions

View File

@ -94,6 +94,6 @@
<%= <%=
content_tag :div, class: "bottomnav clearfix" do content_tag :div, class: "bottomnav clearfix" do
content_tag(:div, paginate(@event_news), class: "pagination pagination-centered") + 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 end
%> %>

View File

@ -5,5 +5,5 @@ scheduler = Rufus::Scheduler.new
#return if defined?(Rails::Console) || Rails.env.test? || File.split($0).last == 'rake' #return if defined?(Rails::Console) || Rails.env.test? || File.split($0).last == 'rake'
scheduler.cron '43 2 * * *' do scheduler.cron '43 2 * * *' do
system('bundle exec rake bulletin:remove_preview_bulletins') system('bundle exec rake event_news:remove_preview_event_news')
end end