Render your views with Rails and then sprinkle in client-side rendered Vue components where you want them. When Vue components are used, they are dynamically imported and mounted, keeping your app's load times fast for users by keeping js bundle sizes small.
spec/system/pandas/index_spec.rb
can be a helpful examplerails g view_with_vue index|show|edit|create ROUTE_PATH
. See more details belowbin/setup
bin/dev
rspec
yarn test
rails g scaffold
# Ex. rails g scaffold animal name:string species:string age_years:integer
rails generate view_with_vue index|show|edit|create ROUTE_PATH
# Ex. rails g view_with_vue edit animals/llamas will create the route /animals/llamas/:id/edit with a Vue component that loads on the view for that route.