Skip to content
This repository was archived by the owner on Nov 30, 2018. It is now read-only.

Commit 54af859

Browse files
committed
README
1 parent f126166 commit 54af859

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,23 +33,23 @@ syntax shown below for form declaration doesn't work as is. See comments in code
3333
```ruby
3434

3535
# For usage with strong parameters you'll need to permit them
36-
permit_params translations_attributes: [:id, :locale, :title, :content, :_destroy]
36+
permit_params translations_attributes: [:id, :locale, :title, :description, :_destroy]
3737

3838
index do
3939
# textual translation status
4040
translation_status
4141
# or with flag icons
4242
translation_status_flags
4343
# ...
44-
default_actions
44+
actions
4545
end
4646

4747
# This was the original syntax proposed in this gem, however currently it doesn't work
4848
form do |f|
4949
# ...
5050
f.translated_inputs "Translated fields", switch_locale: false do |t|
5151
t.input :title
52-
t.input :content
52+
t.input :description
5353
end
5454
# ...
5555
end
@@ -61,7 +61,7 @@ form do |f|
6161
f.inputs "Translated fields" do
6262
f.translated_inputs 'ignored title', switch_locale: false do |t|
6363
t.input :title
64-
t.input :content
64+
t.input :description
6565
end
6666
end
6767
# ...
@@ -79,7 +79,7 @@ form do |f|
7979
f.inputs "Translated fields" do
8080
f.translated_inputs 'ignored title', switch_locale: false, available_locales: (I18n.available_locales - [:en]) do |t|
8181
t.input :title
82-
t.input :content
82+
t.input :description
8383
end
8484
end
8585
# ...
@@ -92,7 +92,7 @@ form do |f|
9292
f.inputs "Translated fields" do
9393
f.translated_inputs 'ignored title', switch_locale: false, default_locale: :bn do |t|
9494
t.input :title
95-
t.input :content
95+
t.input :description
9696
end
9797
end
9898
# ...

0 commit comments

Comments
 (0)