Heroku Rails 3应用程序崩溃 - 错误H10(应用程序崩溃)
问题描述:
我的网站正常工作在我本地的mashine上,但在heroku上崩溃。Heroku Rails 3应用程序崩溃 - 错误H10(应用程序崩溃)
这是我的Heroku日志:http://pastie.org/private/ligfhv4tjqmodclkwxc21q
相关日志部分:
[36m2011-12-01T19:42:53 + 00:00应用程式[web.1]←[0米 /app/.bundle/gems/ruby/1.8/gems/a ctivesupport-3.0.3/lib/active_support/dependencies.rb:239: `require':/ app/app /helpers/kategoris_helper.rb:2 :语法错误, 意外的kEND,期待$ end(S yntaxError)
我的堆栈是竹REE 1.8.7
我觉得这是这个帮手做的,但不能确定:
module KategorisHelper
def sortkat(column, title = nil)
title ||= column.titleize
css_class = column == sort_column ? "current #{sort_direction}" : nil
direction = column == sort_column && sort_direction == "ASC" ? "DESC" : "ASC"
link_to title, params.merge(:sort => column, :direction => direction, :page => nil), {:class => css_class}
end
end
答
那么,错误消息基本上意味着,有一个end
太很多(syntax error, unexpected kEND, expecting $end
,缺少end
是syntax error, unexpected $end, expecting kEND
)。 ruby -c
不会抱怨你的帮手,你是否复制了整个代码?
这是一个编码问题,重写结束,它解决了问题 –