Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • A administrate
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 96
    • Issues 96
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 32
    • Merge requests 32
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • thoughtbot, inc.
  • administrate
  • Merge requests
  • !1051

humanize has_many form label

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/ryanhertz/has-many-form-label into master Dec 17, 2017
  • Overview 16
  • Commits 3
  • Pipelines 0
  • Changes 2

Created by: ryanhertz

The has_many field form label displays in underscore case. The second argument to the label_tag helper should be the display text, but here field.attribute is a symbol. Other fields, like the string field, aren't affected because the label tag helper in the string form partial only receives one argument. When the label_tag helper only receives one argument, it calls .to_s.humanize on it to create the display text, so that's what I've added to the has_many form partial.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/ryanhertz/has-many-form-label