Handling POSTDATA in Sinatra?

The problem is that your :data param is nil One way you could fix this is to remove the reference to :data Try this instead require "rubygems" require "sinatra" post '/eval' do "I got #{params:command}. " end you can test this with curl on your command line (if you are using a unix based system) curl localhost:4567/eval -F "command=hello In the future, It will be helpful to others if you provide a stacktrace of your error with your question.

The problem is that your :data param is nil. One way you could fix this is to remove the reference to :data. Try this instead.

Require "rubygems" require "sinatra" post '/eval' do "I got #{params:command}. " end you can test this with curl on your command line (if you are using a unix based system). Curl localhost:4567/eval -F "command=hello" In the future, It will be helpful to others if you provide a stacktrace of your error with your question.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions