Flatten tags list, cast to array and remove blank elements
This commit is contained in:
parent
b60805a54c
commit
ea5248dde1
3 changed files with 16 additions and 1 deletions
|
@ -42,7 +42,7 @@
|
|||
= label_tag :text, 'Pièce jointe'
|
||||
= file_field_tag :file
|
||||
|
||||
= hidden_field_tag :tags, params[:tags]
|
||||
= hidden_field_tag :tags, @tags&.join(',')
|
||||
|
||||
.send-wrapper
|
||||
= button_tag 'Envoyer le message', type: :submit, class: 'button send primary'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue