I encountered some issues when using Rails scaffolding with a model name/namespace that didn't match up. Ie. scaffolding admin routes for some resources like this:
This should generate everything using a User model, but with routing that follows admin_user* naming pattern. However, the templates would generate links with user* for paths.
This updates the templates to use the rest of the routing helpers Rails provides, and also includes a handler for the form target url, only if necessary.
I encountered some issues when using Rails scaffolding with a model name/namespace that didn't match up. Ie. scaffolding admin routes for some resources like this:
This should generate everything using a
User
model, but with routing that followsadmin_user*
naming pattern. However, the templates would generate links withuser*
for paths.This updates the templates to use the rest of the routing helpers Rails provides, and also includes a handler for the form target url, only if necessary.