ruby on rails - time_ago_in_words => "in {{count}} days."? -


i'm having weird bug. in code have <%= time_ago_in_words(game.created_at) %>

it's works locally , on staging server not on production server:

example: http://hockey-community.com/games/show/45

i "in {{count}} days."

weirdly, if number returned 1, works. (ex: 1 hour ago or 1 day ago).

any idea helpful. thks

rails using deprecated syntax in helper got dropped in latest ruby version. if using heroku, try telling production instance use rails 2.3.9. otherwise can try downgrading ruby.

see changelog: http://weblog.rubyonrails.org/2010/9/4/ruby-on-rails-2-3-9-released

changes i18n named-interpolation syntax deprecated hello {{name}} 1.9-native hello %{name}.

this looks fix problem.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -