Внутри тега формы я размещаю скрытое поле.Это скрытое поле должно иметь атрибут "v-model".Я перепробовал все, о чем могу подумать:
# nothing shows up
= f.hidden_field :model_attribute, "v-model" => "value"
# that's the one I love the most: it compiles v="{:model=>"value"}"
= f.hidden_field :model_attribute, v: { model: "value" }
# it compiles with the underscore
= f.hidden_field :model_attribute, v_model: "value"
# this throws a compile error, obviously
= f.hidden_field :model_attribute, v-model: "value"
# guess the compiled outcome?
= f.hidden_field :model_attribute, html: { "v-model" => "value" }
#same as previous
= f.hidden_field :model_attribute, options: { "v-model" => "value" }
рельсы мне не нужны?Кто-нибудь может мне помочь?