David Kahn
2010-Aug-01 17:12 UTC
The {{key}} interpolation syntax in I18n messages is deprecated...
All, Has anyone seen this - I am getting the following deprecation warning when running my functional tests under rails 2.3.8 (just moved an app from 2.3.4 up to 2.3.8 in prep to move to Rails 3 --- if you think this problem is solved in Rails 3 then let me know): The {{key}} interpolation syntax in I18n messages is deprecated. Please use %{key} instead. I have isolated the problem to the following line in my model --- when I do not add this error everything is fine: errors.add_to_base("Uploaded file must be present") if !self.uploaded_file_content Also tried this but same result: errors.add(:uploaded_file_content, "Uploaded file must be present") if !self.uploaded_file_content The irony is on this app I have no use for i18n. Would be also just as glad to turn it off, but of course that would only be a band-aid. Thanks in advance! David -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
David Kahn
2010-Aug-01 23:00 UTC
Re: The {{key}} interpolation syntax in I18n messages is deprecated...
Please disregard this post. I just switched to using rvm, and seems that the issue auto-corrected. Also interestingly, my tests sped up, taking less than 30% of the time they used to take (units used to take 90 seconds, now 23 seconds). Not sure if this is due to using a slightly higher build number of ruby or to credit rvm. Either way, nice surprise. On Sun, Aug 1, 2010 at 1:12 PM, David Kahn <dk-rfEMNHKVqOwNic7Bib+Ti1W1rNmOCjRP@public.gmane.org>wrote:> All, > Has anyone seen this - I am getting the following deprecation warning when > running my functional tests under rails 2.3.8 (just moved an app from 2.3.4 > up to 2.3.8 in prep to move to Rails 3 --- if you think this problem is > solved in Rails 3 then let me know): > > The {{key}} interpolation syntax in I18n messages is deprecated. Please use > %{key} instead. > > I have isolated the problem to the following line in my model --- when I do > not add this error everything is fine: > > errors.add_to_base("Uploaded file must be present") if > !self.uploaded_file_content > > > Also tried this but same result: > > errors.add(:uploaded_file_content, "Uploaded file must be present") if > !self.uploaded_file_content > > > The irony is on this app I have no use for i18n. Would be also just as glad > to turn it off, but of course that would only be a band-aid. > > Thanks in advance! > > David >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Adam Stegman
2010-Aug-02 15:01 UTC
Re: The {{key}} interpolation syntax in I18n messages is deprecated...
I noticed that error message when using the i18n gem instead of Rails'' default i18n. Could that have been the issue? On Aug 1, 12:12 pm, David Kahn <d...-rfEMNHKVqOwNic7Bib+Ti1W1rNmOCjRP@public.gmane.org> wrote:> All, > Has anyone seen this - I am getting the following deprecation warning when > running my functional tests under rails 2.3.8 (just moved an app from 2.3.4 > up to 2.3.8 in prep to move to Rails 3 --- if you think this problem is > solved in Rails 3 then let me know): > > The {{key}} interpolation syntax in I18n messages is deprecated. Please use > %{key} instead. > > I have isolated the problem to the following line in my model --- when I do > not add this error everything is fine: > > errors.add_to_base("Uploaded file must be present") if > !self.uploaded_file_content > > Also tried this but same result: > > errors.add(:uploaded_file_content, "Uploaded file must be present") if > !self.uploaded_file_content > > The irony is on this app I have no use for i18n. Would be also just as glad > to turn it off, but of course that would only be a band-aid. > > Thanks in advance! > > David-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
David Kahn
2010-Aug-02 15:06 UTC
Re: Re: The {{key}} interpolation syntax in I18n messages is deprecated...
I seem to have obliterated my previous install of Ruby while installing rvm so I will never know. But I am so happy with rvm that I am overlooking this mishap. At least I was not consciously using the i18n gem if this was the case. On Mon, Aug 2, 2010 at 11:01 AM, Adam Stegman <adam.stegman-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote:> I noticed that error message when using the i18n gem instead of Rails'' > default i18n. Could that have been the issue? > > On Aug 1, 12:12 pm, David Kahn <d...-rfEMNHKVqOwNic7Bib+Ti1W1rNmOCjRP@public.gmane.org> wrote: > > All, > > Has anyone seen this - I am getting the following deprecation warning > when > > running my functional tests under rails 2.3.8 (just moved an app from > 2.3.4 > > up to 2.3.8 in prep to move to Rails 3 --- if you think this problem is > > solved in Rails 3 then let me know): > > > > The {{key}} interpolation syntax in I18n messages is deprecated. Please > use > > %{key} instead. > > > > I have isolated the problem to the following line in my model --- when I > do > > not add this error everything is fine: > > > > errors.add_to_base("Uploaded file must be present") if > > !self.uploaded_file_content > > > > Also tried this but same result: > > > > errors.add(:uploaded_file_content, "Uploaded file must be present") if > > !self.uploaded_file_content > > > > The irony is on this app I have no use for i18n. Would be also just as > glad > > to turn it off, but of course that would only be a band-aid. > > > > Thanks in advance! > > > > David > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.