-
When worked with builtin <form>
<input type="hidden" name="university:chong_2023" value="false">
<input type="checkbox" id="chong_2023" name="university:chong_2023" value="true" hx-put="/universities/843"
</form> it work as expected. When when work with htmx which not a form, like this: label do
input(type: "hidden", name: "university:is_marked", value: "false", id: "marked_unmark")
input(
type: "checkbox",
name: "university:is_marked",
value: "true",
id: "marked",
"hx-put": "",
"hx-target": "",
"hx-swap": "outerHTML",
"hx-indicator": "#spinner",
"hx-include": "[name='_csrf'],[name='university:is_marked']"
)
span "手动"
end I get following
And get following when
The issue is, on both cases, params.to_h always return
my question is, how to get the Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It's seem like only Checking following log:
Because SaveChongWenBao.update!(chong_wen_bao, params) I have to use like following:
So, i consider this as a bug, what do you think? |
Beta Was this translation helpful? Give feedback.
It looks like it could be a bug.