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
  • !2280

Titleize the column not the user defined locale

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge github/fork/jsntv200/label-fix into main Oct 24, 2022
  • Overview 2
  • Commits 1
  • Pipelines 0
  • Changes 2

Created by: jsntv200

Solves #2014

Ran into this problem when I wanted to render a column with ID in the name. Assumed defining the label in a locale would resolve the issue but no joy.

Overriding a template to display a user defined locale seemed like overkill when it appears that titleize is incorrectly applied for the collection partial. Existing usage in other partials/templates is to titleize the column rather than the result of translate.

https://github.com/thoughtbot/administrate/blob/main/app/views/administrate/application/new.html.erb#L19 https://github.com/thoughtbot/administrate/blob/main/app/views/fields/has_one/_form.html.erb#L21 https://github.com/thoughtbot/administrate/blob/main/app/views/fields/has_one/_show.html.erb#L32

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/jsntv200/label-fix