Open kohheepeace opened 1 year ago
In Rails 7, I got an "ActionView::MissingTemplate Error" error when I try to use jbuilder as described in the following document.
ActionView::MissingTemplate Error
https://github.com/shakacode/react-webpack-rails-tutorial/blob/master/docs/jbuilder.md
❌ Not working
<%= react_component('App', props: render(template: "/comments/index.json.jbuilder")) %>
✅ Working
<%= react_component('App', props: render(template: "/comments/index", formats: :json)) %>
https://stackoverflow.com/a/74683089/6037441
Sorry for this, but this document seems outdated. I will take a look at the issue and docs in a couple of days and will let you know the result.
Thanks for your report.
Problem
In Rails 7, I got an "
ActionView::MissingTemplate Error
" error when I try to use jbuilder as described in the following document.https://github.com/shakacode/react-webpack-rails-tutorial/blob/master/docs/jbuilder.md
Solution
❌ Not working
✅ Working
Ref
https://stackoverflow.com/a/74683089/6037441