@@ -33,23 +33,23 @@ syntax shown below for form declaration doesn't work as is. See comments in code
33
33
``` ruby
34
34
35
35
# 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 ]
37
37
38
38
index do
39
39
# textual translation status
40
40
translation_status
41
41
# or with flag icons
42
42
translation_status_flags
43
43
# ...
44
- default_actions
44
+ actions
45
45
end
46
46
47
47
# This was the original syntax proposed in this gem, however currently it doesn't work
48
48
form do |f |
49
49
# ...
50
50
f.translated_inputs " Translated fields" , switch_locale: false do |t |
51
51
t.input :title
52
- t.input :content
52
+ t.input :description
53
53
end
54
54
# ...
55
55
end
@@ -61,7 +61,7 @@ form do |f|
61
61
f.inputs " Translated fields" do
62
62
f.translated_inputs ' ignored title' , switch_locale: false do |t |
63
63
t.input :title
64
- t.input :content
64
+ t.input :description
65
65
end
66
66
end
67
67
# ...
@@ -79,7 +79,7 @@ form do |f|
79
79
f.inputs " Translated fields" do
80
80
f.translated_inputs ' ignored title' , switch_locale: false , available_locales: (I18n .available_locales - [:en ]) do |t |
81
81
t.input :title
82
- t.input :content
82
+ t.input :description
83
83
end
84
84
end
85
85
# ...
@@ -92,7 +92,7 @@ form do |f|
92
92
f.inputs " Translated fields" do
93
93
f.translated_inputs ' ignored title' , switch_locale: false , default_locale: :bn do |t |
94
94
t.input :title
95
- t.input :content
95
+ t.input :description
96
96
end
97
97
end
98
98
# ...
0 commit comments