Skip to content

draft:resource should not use conventional names for view templates #106

Description

@pmckernin

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].
  • File names can be:
    • index => list_of_[MODEL_PLURAL].html.erb
    • show => [MODEL]_details.html.erb

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions