Previews

No matching results.

x
1
2
3
<div data-controller="vuejs-forms" data-values="{"user":{"id":null,"first_name":null,"last_name":null,"phone":null,"email":null,"amount":null,"website":null,"country":null,"birth_date":null,"appointment_at":null,"code_snippet":null,"bio":null,"preferred_time":null,"newsletter":false,"marketing_emails":null,"terms_accepted":false,"privacy_policy_accepted":false,"interests":null,"notification_preferences":[],"errors":{"_is_valid":true},"warnings":{"_is_valid":true},"suggested_values":{"first_name":"Oscar Botyglot","country":"france","birth_date":"2026-03-28","appointment_at":"2026-03-29T09:55:31.627Z","code_snippet":"# Sample Ruby code\nclass HelloWorld\n def greet(name)\n puts \"Hello, #{name}!\"\n end\nend\n\nhello = HelloWorld.new\nhello.greet(\"World\")\n","phone":"+33 1 23 45 67 89","amount":1234.56,"bio":"Passionate software developer with expertise in Ruby on Rails and Vue.js. Always eager to learn new technologies and share knowledge with the community.","preferred_time":"2026-03-28T14:30:00.000Z","newsletter":true,"marketing_emails":true,"terms_accepted":true,"privacy_policy_accepted":true,"interests":["ruby","javascript"],"notification_preferences":["email","push"]}}}" data-validation-url="/users" data-vuejs-forms-initial-touch-value="true"><botyglot-form id="new_user_form" class="form user-form" action="/users" accept-charset="UTF-8" method="post"><input type="hidden" name="authenticity_token" value="qLNiEQaqtEbJtM0_tTiSt3QssG8E8ydPmtD2lABTQZxQ-6EXBYUbE8shrCtYnG3v40wKPuGi-G2CKWFpZn-foQ" autocomplete="off" />
<botyglot-multi-check choices="[{"id":"email","display_name":"email"},{"id":"sms","display_name":"sms"},{"id":"push","display_name":"push"},{"id":"slack","display_name":"slack"}]" display_error="true" type="text" name="user[notification_preferences]" id="user_notification_preferences" ></botyglot-multi-check>
</botyglot-form></div>
1
2
3
4
5
6
7
8
9
<%- url = polymorphic_path(['', User], action: :create) -%>
<%= vuejs_form_with(model: user, url: url, local: true, scope: :user, builder: default_form_builder, initial_touch: true) do |form| %>
<%= render Elevate::VueJs::MultiCheckComponent.new(
form: form,
field_name: :notification_preferences,
choices: user.notification_preferences__potential_values
) %>
<% end %>

No assets to display.