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:
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.
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
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:
For the Flashmessage the
app/javascript/Shared/FlashMessages.vue
uses the key$page.props.flash.success
. but in theapp/controllers/concerns/Inertiable.rb
the key for the data store isnotice
. So I changed them both toflash
.js-routes is currently on
2.0.3
and they don't export theroutes
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
@janz93 Thank you for the feedback and information.