Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ankitsinghaniyaz/513aa165ff66fefe0b77169a7a1e51f8 to your computer and use it in GitHub Desktop.
Save ankitsinghaniyaz/513aa165ff66fefe0b77169a7a1e51f8 to your computer and use it in GitHub Desktop.
<!-- this is the same id we reffered in the vue file -->
<!-- for consisteny, I also follow a convention in this -->
<!-- {folder-paths}-{action}-view -->
<div id="devise-registrations-new-view">
<!-- we talked about passing the validation error to vue -->
<!-- here is how easy it is to do this -->
<devise-registrations-new-view :errors="<%= resource.errors.full_messages %>">
</devise-registrations-new-view>
</div>
<!-- these is how we say rails to include the javascript and stylesheet generated -->
<%= javascript_pack_tag 'devise/registrations/new'%>
<%= stylesheet_pack_tag 'devise/registrations/new'%>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment