diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-06-28 04:56:08 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-06-28 16:37:20 +0200 |
| commit | c96fbbb701ec97f9f6c69ca0d51ed3cd895b260e (patch) | |
| tree | 4d79019c70f0fdbf6afa85cb0aa213756dab37b9 /app/views/nodes | |
| parent | b94de9fe8c30210469953bbd9880e9cbcc7a3ef5 (diff) | |
Fix tag list rendering in node editor
tag_list.to_s produces space-separated output which acts-as-taggable-on
13.0.0 (comma delimiter only) treats as a single tag on re-save.
Use join(', ') to render comma-separated tags in the input field.
Diffstat (limited to 'app/views/nodes')
| -rw-r--r-- | app/views/nodes/edit.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/nodes/edit.html.erb b/app/views/nodes/edit.html.erb index b45c700..498fa1f 100644 --- a/app/views/nodes/edit.html.erb +++ b/app/views/nodes/edit.html.erb | |||
| @@ -41,7 +41,7 @@ | |||
| 41 | 41 | ||
| 42 | <%= fields_for @draft do |d| %> | 42 | <%= fields_for @draft do |d| %> |
| 43 | <div class="node_description">Tags - comma seperated</div> | 43 | <div class="node_description">Tags - comma seperated</div> |
| 44 | <div class="node_content"><%= text_field_tag :tag_list, @draft.tag_list %></div> | 44 | <div class="node_content"><%= text_field_tag :tag_list, @draft.tag_list.join(', ') %></div> |
| 45 | 45 | ||
| 46 | <div class="node_description">Publish at</div> | 46 | <div class="node_description">Publish at</div> |
| 47 | <div class="node_content"><%= d.datetime_select :published_at, :value => @draft.published_at %></div> | 47 | <div class="node_content"><%= d.datetime_select :published_at, :value => @draft.published_at %></div> |
