[Rails] Re: String interpolation

2013-10-23 Thread Gustav Khimelaynen
Thanks you for reply! I already solved originaly problem with Interpolate features from I18n. среда, 23 октября 2013 г., 17:53:19 UTC+4 пользователь Ruby-Forum.com User написал: > > I'm not sure what the standard is, but I expect you'd handle the > conditional when entering the value into the ha

[Rails] String interpolation

2013-10-22 Thread Gustav Khimelaynen
Hi! I'm confronted with some problems in strings. If I create string like this one: > junk = "You junked %{item}" > Then I can put text into it like this: > junk % { :item => 'some item' } > But if I get this string: > junk = "You junked %{item} and you can choose %{reward($condition=Bark > fiv