开发者

Herkou class changes not detected

I'm using Herkou for some Rails 3 hosting. I have pushed code to Heroku, and I am getting the following error from the logs:

NoMethodError (undefined method `format_date' for #<Project:0x00000001938f40>):

This method does exist! I can for example so this:

$heroku console

>> Project.format_date('2011-07-07 10:50')
=> "2011-07-07"

So my code appears to be deployed. Project responds to format_date.

I also tried heroku rest开发者_如何学编程art with no success.

Can anyone help me? Any and all suggestions are appreciated!


Are you sure you are calling format_date on the class itself, like you do in your example, and not on an instance of the class? I.e. Project.new.format_date("2011-07-07 10:50")

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜