Skip to content

Instantly share code, notes, and snippets.

@musubu
Created June 16, 2013 04:53
Show Gist options
  • Save musubu/5790822 to your computer and use it in GitHub Desktop.
Save musubu/5790822 to your computer and use it in GitHub Desktop.
validates_timelinessの日本語ロケール
ja:
errors:
messages:
invalid_date: "は不正な日付です。"
invalid_time: "は不正な時間です。"
invalid_datetime: "は不正な日時です。"
is_at: "は%{restriction}にしてください。"
before: "は%{restriction}より前にしてください。"
on_or_before: 'は%{restriction}以前にしてください。'
after: "は%{restriction}より後にしてください。"
on_or_after: 'は%{restriction}以降にしてください。'
validates_timeliness:
error_value_formats:
date: '%Y-%m-%d'
time: '%H:%M:%S'
datetime: '%Y-%m-%d %H:%M:%S'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment