English 中文(简体)
Heroku误差 “处理申请时未预料到的错误:可以将纳米转化为强硬”。
原标题:Heroku error "Unexpected error while processing request: can t convert nil into String"
问题回答

我本周在Sinatra上看到了同样的错误。 看看这些问题作者提供的胶卷,我看见。 它确定了我提出的问题。

我曾使用<代码>sinatra-activerecord处理这一问题。 更新我的数据库和重新铺设环境,对我来说是trick:

www.un.org/Depts/DGACM/index_spanish.htm





相关问题
shotgun gem explodes when starting a Sinatra app on windows

Sinatra app: require "rubygems" require "sinatra" get / do "Hello world. It s #{Time.now} at the server!" end windows XP with latest version of mongrel, sinatra, shotgun. ruby 1.8.6 running ...

Deploying Sinatra app on Dreamhost/Passenger with custom gems

I ve got a Sinatra app that I m trying to run on Dreamhost that makes use of pony to send email. In order to get the application up and running at the very beginning (before adding pony), I had to gem ...

Thin (ruby) is barfing

Simple sinatra app: require rubygems require sinatra get / do "Hey" end Then: $ ruby test.rb And when I hit http://localhost:4567, it drops the connection and I get: /usr/local/lib/ruby/...

Sinatra on Rack under Passenger returning 0-byte pages

I m trying to write a Sinatra app that will run on a shared Passenger server. For now, I d be happy just getting a "hello world", but something isn t working quite right. I have: config.ru require ...

How to handle POSTed XML via Sinatra Ruby app

I m planning on using Sinatra for a new tiny webservice (WS) that I need to put together for a client. The WS will only have two methods, one accessed via GET and one via POST. For the POST method, ...

newbie sinatra question

To return a file using sinatra, I had been using this: get /:name do x = File.open( c:/mywebsite/ + params[:name], r ) end where the incoming url is "http://localserver:4567/myfile.html....

热门标签