#906 ✓resolved
Don Ziesig

hobo.show_translation_keys, when true, causes translation error on numeric fields

Reported by Don Ziesig | January 19th, 2011 @ 10:03 PM

While translating (and/or replacing the view helper functionality), I set hobo.show_translation_keys = true. After that, when ever I tried to create a new object, I get an error page:

TypeError in Issues#new

Showing controller: issues; dryml-tag: new-page where line [#1](/projects/8324/tickets/1 "Ticket #1") raised:

can't convert Array into String

Extracted source (around line [#1](/projects/8324/tickets/1 "Ticket #1")):

0

Rails.root: /home/dziesig/Desktop/Hobo1.3/locale_problem_demo
Application Trace | Framework Trace | Full Trace

app/views/taglibs/auto/rapid/forms.dryml:6:in `form__for_issue'
app/views/taglibs/auto/rapid/forms.dryml:4:in `form__for_issue'
app/views/taglibs/auto/rapid/forms.dryml:4:in `form__for_issue'
app/views/taglibs/auto/rapid/forms.dryml:3:in `form__for_issue'
app/views/taglibs/auto/rapid/pages.dryml:68:in `new_page__for_issue'
app/views/taglibs/auto/rapid/pages.dryml:67:in `new_page__for_issue'
app/views/taglibs/auto/rapid/pages.dryml:67:in `new_page__for_issue'
app/views/taglibs/auto/rapid/pages.dryml:58:in `new_page__for_issue'
app/views/taglibs/themes/clean/clean.dryml:2:in `page'
app/views/taglibs/themes/clean/clean.dryml:1:in `page'
app/views/taglibs/auto/rapid/pages.dryml:55:in `new_page__for_issue'
app/views/taglibs/auto/rapid/pages.dryml:54:in `new_page__for_issue'

hobo (1.3.0.pre25) lib/hobo/extensions/i18n.rb:7:in `+'
hobo (1.3.0.pre25) lib/hobo/extensions/i18n.rb:7:in `translate'
actionpack (3.0.3) lib/action_view/helpers/date_helper.rb:783:in `translated_date_order'
actionpack (3.0.3) lib/action_view/helpers/date_helper.rb:778:in `_unmemoized_date_order'
activesupport (3.0.3) lib/active_support/memoizable.rb:75:in `date_order'
actionpack (3.0.3) lib/action_view/helpers/date_helper.rb:600:in `select_datetime'
actionpack (3.0.3) lib/action_view/helpers/date_helper.rb:327:in `select_datetime'
hobo (1.3.0.pre25) lib/hobo/rapid/taglibs/rapid_forms.dryml:424:in `input__for_time'
dryml (1.3.0.pre25) lib/dryml/template_environment.rb:327:in `_tag_context'
dryml (1.3.0.pre25) lib/dryml/template_environment.rb:247:in `new_context'
actionpack (3.0.3) lib/action_view/helpers/capture_helper.rb:172:in     `with_output_buffer'

snip...

I have attached a trivial app that demonstrates the problem, deleted the first user record so it should work as soon as you sign up.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket

Attachments

Referenced by

Pages