diff --git a/app/controllers/headlines_controller.rb b/app/controllers/headlines_controller.rb index 20e79e5a..348bab48 100644 --- a/app/controllers/headlines_controller.rb +++ b/app/controllers/headlines_controller.rb @@ -7,7 +7,7 @@ class HeadlinesController < ApplicationController respond_to :html def index - respond_with @headlines.order(created_at: :desc) + @headlines = @headlines.order(created_at: :desc) end def show diff --git a/app/views/cups/_headline.html.erb b/app/views/cups/_headline.html.erb index d1b3886a..c9d52b99 100644 --- a/app/views/cups/_headline.html.erb +++ b/app/views/cups/_headline.html.erb @@ -2,7 +2,7 @@
- <%= link_to(cup_headline_path(@current_cup, headline)) do %> - <%= headline.title %> - <% end %> -
-- <%= headline.created_at.to_fs :day_month_year %> -
-+ <%= Headline.human_attribute_name(:created_at) %> + <%= l(headline.created_at.to_date, format: :day_month_year) %> +
+