Skip to content

Instantly share code, notes, and snippets.

@ankitsinghaniyaz
Created November 17, 2017 15:54
Show Gist options
  • Save ankitsinghaniyaz/89d27b79844d51bfbe523abfb23a885d to your computer and use it in GitHub Desktop.
Save ankitsinghaniyaz/89d27b79844d51bfbe523abfb23a885d to your computer and use it in GitHub Desktop.
Description:
Create Vue files corresponding to the Rails views
Example:
rails generate vue [namespace]/[controller]/action
This will create:
app/javascript/packs/[namespace]/[controller]/action.js
app/javascript/views/[namespace]/[controller]/action.vue
app/views/[namespace]/[controller]/action.html.erb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment