這是我在我的Padrino應用程序中的代碼,我找不到它是什麼行或錯誤。該錯誤消息「語法錯誤,意想不到的keyword_end期待$結束」內容類型case語句中的語法錯誤
get :index, :provides => [:html, :json] do
@title = "Restaurants"
@restaurants = Restaurant.all
case content_type
when :json
render @restaurants
else
render 'restaurants/index'
end
end
end
可否請你指出我的錯誤,並建議我怎麼可能調試它的未來?謝謝
好的提示!我也使用Vim。謝謝 – Peter 2013-04-24 23:00:39