I'm trying to create a page in Sinatra, so that whatever you post (under the parameter name "command") will be echoed back to you. Here's my current approach:
post '/eval' do
"I got #{params[:data][:command]}."
end
If I try to post anything to /eval, it results in an internal server error. What am I doing wrong?