Overriding Rails Scaffold for custom API functionality
I am trying to set up the rails scaffold command so that on startup
rails generate scaffold api/v1/model_name
it still creates folder structure but doesn't add api_v1_ to views, tests, etc.
I understand how to override and add new partial messages from this post: Replace Rails sketch generator , but I would like to override test, factory and view.
+3
source to share
No one has answered this question yet
See similar questions:
or similar: