Currently, draft:resource uses conventional names for view folders and templates. This means that the route will magically work even if e.g. the action name is mispelled.
I think it would be better to generate non-conventional names and then switch over explicitly during Phase 2.
Folder name should be [MODEL]_templates rather than [MODEL_PLURAL].
Currently,
draft:resource
uses conventional names for view folders and templates. This means that the route will magically work even if e.g. the action name is mispelled.I think it would be better to generate non-conventional names and then switch over explicitly during Phase 2.
[MODEL]_templates
rather than[MODEL_PLURAL]
.index
=>list_of_[MODEL_PLURAL].html.erb
show
=>[MODEL]_details.html.erb