Localize date format via rails-i18n

This commit is contained in:
Andreas Haller 2015-05-17 19:19:59 +02:00
parent b1197df490
commit ff58856c99
3 changed files with 6 additions and 1 deletions

View file

@ -3,6 +3,7 @@ source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails'
gem 'rails-i18n'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
gem 'kaminari'

View file

@ -134,6 +134,9 @@ GEM
rails-deprecated_sanitizer (>= 1.0.1)
rails-html-sanitizer (1.0.2)
loofah (~> 2.0)
rails-i18n (4.0.4)
i18n (~> 0.6)
railties (~> 4.0)
railties (4.2.1)
actionpack (= 4.2.1)
activesupport (= 4.2.1)
@ -201,6 +204,7 @@ DEPENDENCIES
omniauth-browserid
pry
rails
rails-i18n
sass-rails
sdoc (~> 0.4.0)
slim-rails

View file

@ -17,7 +17,7 @@ div
'
small = doc.originator
'
small = doc.published_at
small = l doc.published_at.to_date
= link_to doc.url, target: '_blank' do
div = doc.name