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":["email"],"errors":{"_is_valid":false,"first_name":"First name can't be blank","country":"Country can't be blank","birth_date":"Birth date can't be blank","appointment_at":"Appointment at can't be blank","code_snippet":"Code snippet can't be blank","phone":"Phone can't be blank","bio":"Bio can't be blank","preferred_time":"Preferred time can't be blank","newsletter":"Newsletter must be accepted to receive updates","terms_accepted":"Terms accepted must be accepted to continue"},"warnings":{"_is_valid":false,"privacy_policy_accepted":"Privacy policy accepted We recommend reviewing our privacy policy","notification_preferences":"Notification preferences Consider enabling more notification channels"},"suggested_values":{"first_name":"Oscar Botyglot","country":"france","birth_date":"2026-03-28","appointment_at":"2026-03-29T09:57:10.804Z","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="VFh-Pem_yNxEHk6Hh9ys2f9GvvmmWF8VpZEtIdlPhzhAPOTowuVJt6xrVlA1unKGXfN8U3GGAhKFbaSHeYT4Xg" 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" value="email" 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.