From 1b3e7fca9a15c020e9c6dd6b860ed7bf8b73a7db Mon Sep 17 00:00:00 2001 From: "Rico Sta. Cruz" Date: Thu, 16 Apr 2015 20:49:31 +0800 Subject: [PATCH] Update --- rails-i18n.md | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/rails-i18n.md b/rails-i18n.md index 0350feb5b..b53184e01 100644 --- a/rails-i18n.md +++ b/rails-i18n.md @@ -31,8 +31,8 @@ hello: "Hello %{name}" ```rb # from the 'books/index' view -t('.title') -``` +t('.title' +``n {:.light} ```yml @@ -159,7 +159,13 @@ validates ### Labels +```rb +form_for @post do + f.label :body ``` +{:.light} + +```yml helpers: # helpers.label.. label: @@ -169,6 +175,11 @@ helpers: ### Submit +```rb +form_for @post do + f.submit +``` + ```yml helpers: submit: