DEV Community

Discussion on: How to use Inertia with Ruby on Rails and Vue

Collapse
 
janz93 profile image
Jan Zaydowicz • Edited

This is such a great post in order to get started with inertia with rails 🙏

I was able to follow it step by step and have the dummy app running now ❣️

Just a small Note: I found two things which I needed to change in order to get it running:

  1. For the Flashmessage the app/javascript/Shared/FlashMessages.vue uses the key $page.props.flash.success. but in the app/controllers/concerns/Inertiable.rb the key for the data store is notice. So I changed them both to flash.

  2. js-routes is currently on 2.0.3 and they don't export the routes directly anymore. Instead you need to import everything as routes. import * as Routes from "./routes.js"

I hope this will help someone and again thank you so much for your work

Collapse
 
jamgar profile image
James Garcia

@janz93 Thank you for the feedback and information.