Created
November 16, 2017 15:28
-
-
Save ankitsinghaniyaz/513aa165ff66fefe0b77169a7a1e51f8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 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