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":"2026-03-27T09:58:27Z","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":false,"first_name":"First name can't be blank","country":"Country can't be blank","birth_date":"Birth date 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","notification_preferences":"Notification preferences can't be blank"},"warnings":{"_is_valid":false,"appointment_at":"Appointment at is in the past, consider rescheduling","privacy_policy_accepted":"Privacy policy accepted We recommend reviewing our privacy policy"},"suggested_values":{"first_name":"Oscar Botyglot","country":"france","birth_date":"2026-03-28","appointment_at":"2026-03-29T09:58:27.974Z","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="r-thA23yt1UvyX42EcraZofT31J6ZQ1f9NUVD8Ti9UIbC_ekNgFJZv7ZYMYfpRBrjFSami0VONIP2G4j9Z7YDw" autocomplete="off" />
<botyglot-datetime suggest_value="false" first_day_of_week="1" disable_week_end="false" display_error="true" time_zone="Europe/Paris" type="text" value="2026-03-27 09:58:27 UTC" name="user[appointment_at]" id="user_appointment_at" ></botyglot-datetime>
</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::DatetimeFieldComponent.new(
form: form,
field_name: :appointment_at,
time_zone: "Europe/Paris"
) %>
<% end %>

No assets to display.