【发布时间】:2015-01-24 07:41:51
【问题描述】:
我只想让我的 api 检查条目是否存在,然后返回/响应 true 或 false (boolean)
控制器
def checkBus
if Bus.exists?(:name => params[:driver_name])
respond_with true
else
respond_with false
end
end
但我收到此错误ArgumentError (Nil location provided. Can't build URI.)
【问题讨论】:
标签: ruby-on-rails web-deployment server rails-api