I have a 3G+GPS device (Digi WR44) that can send NMEA packets to any IP address. I would like to get this data from a Rails (or Sinatra) application, but the packets are not send as a valid HTTP requ
I\'m restricting access to the settings page of my Sinatra app with the following code, from the Sinatra docs.
Not sure why I am getting this error in my logs. This error happens every so often, but not consistently, and I\'m not sure why. Here\'s my code:
I\'m writing a simple app that takes standard input from the user.As for the email entry, I have it verify if it is in a standard email format and then have it list the problems like this when a new i
I\'m trying to use Capybara + Rspec to test a Sinatra app, and I\'m having some trouble integrating Capybara with Rspec. Here\'s my spec_helper.rb:
How do I set up Sinatra so that static开发者_JAVA技巧 files in the public folder are returned with the response Access-Control-Allow-Origin = \"*\" ?Have a look at this question here: Sinatra OPTIONS
I have a rake task that I run to query my DB on heroku. My initialization for the task use setting Query Cache but I am not seeing any queries cached.
I have a simple form where there is alist: <form method =\"post\" action =\"\"> <select>Select subject
I use开发者_Go百科d the example hello world app here: http://devcenter.heroku.com/articles/rack And get the error \"Heroku push rejected, no Rails or Rack app detected\"
Quick version (for those familiar with Mongoid & Sinatra): If it\'s not the Psyche/Syck YAML-parsing issue, why else might I get this error when trying to connect to a MongoDB database using Mongo