Rails 3-1-stable fails to start #1662

Closed
slbug opened this Issue Jun 12, 2011 · 4 comments

4 participants

@slbug

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.

@josevalim josevalim was assigned Jun 12, 2011
@jonleighton
Ruby on Rails member

@josevalim this is the problem that is breaking the build also ❤️

@thoefer

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.

@thoefer thoefer pushed a commit that referenced this issue Jun 12, 2011
@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
@thoefer

Do you think this is enough? @josevalim

@thoefer

This issue can be closed due to #1675

@josevalim josevalim closed this Jun 13, 2011
@jake3030 jake3030 pushed a commit to jake3030/rails that referenced this issue Jun 28, 2011
@lifo lifo Fix JSON decoder date-converter regexp [#1662 state:resolved] [Jonath…
…an del Strother]
17da45b
@jake3030 jake3030 pushed a commit to jake3030/rails that referenced this issue Jun 28, 2011
@lifo lifo Fix JSON decoder date-converter regexp [#1662 state:resolved] [Jonath…
…an del Strother]
b153054
@ttosch ttosch pushed a commit that referenced this issue Jan 19, 2015
@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.
edbe65d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment