我有一个奇怪的问题,希望有人知道问题是什么......
使用distance_of_time_in_words(以及因此time_ago_in_words)不返回实际时间距离.相反,它返回的内容包括"en,about_x_hours"或"en,x_minutes".
模式是正确的,如:
time_ago_in_words(50.minutes.ago) => "en, about_x_hours"
time_ago_in_words(3.minutes.ago) => "en, x_minutes"
Run Code Online (Sandbox Code Playgroud)
但是,为什么它在显示"x"而不是实际数字,"_"而不是空格,以及"en",在所有这些的开头?!
当我这样做时,script/runner它给了我-bash: script/runner: Permission denied
当我这样做sudo script/runner时给了我sudo: script/runner: command not found
它只适用于我ruby script/runner.为什么?在其他任何地方,我看到人们只是在script/runner没有ruby前面的情况下运行......是否有"修复"?它导致我的javan-每当生成的crontab失败时,Permission denied因为它只运行script/runner没有ruby...