We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffb886d commit 5426372Copy full SHA for 5426372
app/views/trained_messages/_form.html.erb
@@ -40,7 +40,7 @@
40
<div class="my-5">
41
<%= form.label :source %>
42
<%= form.select :source,
43
- options_for_select([['Chat', 'chat'], ['Feedspam Command', 'feedspam_command']], @trained_message.feedspam_command),
+ options_for_select([['Chat', 'chat'], ['Feedspam Command', 'feedspam_command']], @trained_message.source),
44
{ prompt: 'Select training target' },
45
{ class: ["block shadow-sm rounded-md border px-3 py-2 mt-2 w-full", {"border-gray-400 focus:outline-blue-600": trained_message.errors[:source].none?, "border-red-400 focus:outline-red-600": trained_message.errors[:source].any?}] } %>
46
</div>
0 commit comments