diff --git a/superglue_rails/lib/generators/superglue/view_collection/templates/js/edit.js b/superglue_rails/lib/generators/superglue/view_collection/templates/js/edit.js index 996269ad..f7a35eb2 100644 --- a/superglue_rails/lib/generators/superglue/view_collection/templates/js/edit.js +++ b/superglue_rails/lib/generators/superglue/view_collection/templates/js/edit.js @@ -1,13 +1,13 @@ import React from 'react' // import { useSelector } from 'react-redux' -export default function <%= plural_table_name.camelize %>Edit ({ +export default function <%= js_plural_table_name(:upper) %>Edit ({ // visit, // remote, form, errors, - <%= singular_table_name.camelize(:lower) %>Path, - <%= plural_table_name.camelize(:lower) %>Path, + <%= js_singular_table_name %>Path, + <%= js_plural_table_name %>Path, }) { const messagesEl = errors && (