Stop titleizing enum strings

16 views
Skip to first unread message

Bob Sleys

unread,
Dec 29, 2011, 12:20:58 PM12/29/11
to hobo...@googlegroups.com
I setup a Hobofields enum string and I want the select list to display the option without titleizing them is this possible?

the enum string is setup as follows

  REPORT_TYPES = HoboFields::Types::EnumString.for('projects/AcmBulKSampleLog', 'sampels/samplelog')

I'd like the select list to display option just as they are typed in the definition.  I tried using translations but the translations also get titleized.

bob

Bryan Larsen

unread,
Dec 29, 2011, 1:48:24 PM12/29/11
to hobo...@googlegroups.com
<input for="HoboFields::Types::EnumString"> has a titleize option that
can be set via titleize="&false". Have you tried that?

Bryan

> --
> You received this message because you are subscribed to the Google Groups
> "Hobo Users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/hobousers/-/0psCknjmlE0J.
> To post to this group, send email to hobo...@googlegroups.com.
> To unsubscribe from this group, send email to
> hobousers+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/hobousers?hl=en.

Reply all
Reply to author
Forward
0 new messages