undefined method `+' in translations.rb:75:in `ht'
Reported by kjetilge | March 31st, 2010 @ 07:52 PM | in Hobo 1.1
I have a
class Group < ActiveRecord::Base
fields: {bla bla}
has_many :messages#, :accessible => true, :dependent => :destroy
has_many :documents#, :accessible => true, :dependent => :destroy
if I remove the #'s to make the children accessible for editing and try to edit "Group" I get the enclosed exception.
If I remove messages: (all of it) from my locale file the errors dissapears.
Seems like choosing "+" as an add sign in the code somewhere didn't work out.
Comments and changes to this ticket
-
Bryan Larsen April 1st, 2010 @ 03:25 PM
- Milestone set to Hobo 1.1
- Tag changed from accessible, controller-edit, i18n to defect, i18n
- State changed from new to open
- Assigned user set to Bryan Larsen
Can you attach your translation files as well? This error is happening because the key that it's trying to translate actually corresponds to a set of keys in the translation file.
The attached patch will not fix your error, but it will turn it into a graceful error that will tell you where to fix your translations.
-
Bryan Larsen April 1st, 2010 @ 04:31 PM
A workaround is to add a translation key for group.messages. Then it won't fall back to hobo.messages and blow up.
-
Bryan Larsen April 2nd, 2010 @ 03:49 PM
- State changed from open to resolved
(from [39baf0d2862b556bc0883efcdf06ec18aba359cd]) [#682 state:resolved] undefined method '+' in translations.rb http://github.com/tablatom/hobo/commit/39baf0d2862b556bc0883efcdf06...
-
Bryan Larsen April 2nd, 2010 @ 04:51 PM
- State changed from resolved to open
reopening -- the fix only turned it from a catastrophic failure into a minor error. We still need a good way of ensuring that hobo.meesages (and hobo.actions etc) don't overlap with user models.
-
Bryan Larsen April 17th, 2010 @ 07:15 PM
- State changed from open to resolved
(from [73b6cb7234038659303e6a73d74b3a5f202075aa]) [#682 state:resolved] undefined method '+' in translations.rb http://github.com/tablatom/hobo/commit/73b6cb7234038659303e6a73d74b...
-
Bryan Larsen April 21st, 2010 @ 03:00 PM
- State changed from resolved to open
Annoying lighthouse reclosed this bug when I cherry picked the fix onto 1-0-stable. This is not fixed, regardless of what my commit message said...
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.
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
- 682 undefined method `+' in translations.rb:75:in `ht' (from [73b6cb7234038659303e6a73d74b3a5f202075aa]) [#682 s...
- 682 undefined method `+' in translations.rb:75:in `ht' (from [39baf0d2862b556bc0883efcdf06ec18aba359cd]) [#682 s...