Skip to content
This repository

Rails 3-1-stable fails to start #1662

Closed
slbug opened this Issue · 4 comments

4 participants

bUg. Jon Leighton Thomas Höfer José Valim
bUg.
slbug commented

rails-edc0b2b80b55/activerecord/lib/active_record/railtie.rb:102:in block in <class:Railtie>': undefined methodeach' for "[MISSING] activerecord.attributes":String (NoMethodError)

My key value backed automatically stores missing key with stub translation. For example here I18n.t(:"activerecord.attributes") stores and returns "[MISSING] activerecord.attributes" translation. So it returns string, and each method fails. Code that fails added in c19bd4f. before this commit it was ok.

Jon Leighton
Owner

@josevalim this is the problem that is breaking the build also :heart:

Thomas Höfer

I thought "activerecord.attributes" is some kind of a "reserved" namespace that is used by rails internally, isn´t it?! Therefor I find it a bit strange to treat this key as a normal key in which you store (stub) translations.

Thomas Höfer thoefer referenced this issue from a commit
thoefer2 thoefer2 Make sure to have a Hash under the i18n keys 'activerecord.attributes…
…' and 'activerecord.models' as this might not always be the case. See issue #1662.
1863f12
Thomas Höfer

Do you think this is enough? @josevalim

Thomas Höfer

This issue can be closed due to #1675

José Valim josevalim closed this
Jake Varghese jake3030 referenced this issue from a commit in jake3030/rails
Pratik lifo Fix JSON decoder date-converter regexp [#1662 state:resolved] [Jonath…
…an del Strother]
17da45b
Jake Varghese jake3030 referenced this issue from a commit in jake3030/rails
Pratik lifo Fix JSON decoder date-converter regexp [#1662 state:resolved] [Jonath…
…an del Strother]
b153054
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.