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":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","notification_preferences":"Notification preferences can't be blank"},"warnings":{"_is_valid":false,"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:55:45.272Z","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="5wlKavBtpHcq545eb68JYvoJ2m3T0MQQa5DI4jXDAP8jQFQ1WMDALrTuvruylQH4YXt0JTsvNckeEgVbHdXbxg" autocomplete="off" />
<div class="field_with_errors"><botyglot-date suggest_value="false" display_format="dd MMM yy" first_day_of_week="1" disable_week_end="false" display_error="true" clear_option="false" type="text" name="user[birth_date]" id="user_birth_date" ></botyglot-date></div>
</botyglot-form></div>
1
2
3
4
5
6
7
8
<%- 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::DateFieldComponent.new(
form: form,
field_name: :birth_date
) %>
<% end %>

No assets to display.