sinatra
Rails or Sinatra - How can I handle an invalid HTTP request?
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[详细]
2023-03-30 19:16 分类:问答Is Rack::Auth identical to basic HTTP authentication?
I\'m restricting access to the settings page of my Sinatra app with the following code, from the Sinatra docs.[详细]
2023-03-30 18:36 分类:问答Sinatra, DataMapper: No such table errors
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:[详细]
2023-03-30 07:05 分类:问答Displaying Error Message with Sinatra
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[详细]
2023-03-29 19:52 分类:问答Response Method not there with Sinatra, Rspec & Capybara
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:[详细]
2023-03-29 00:17 分类:问答Sinatra access-control-allow-origin for sinatra public folder
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[详细]
2023-03-28 20:39 分类:问答ActiveRecord, Sinatra and Query Cache on Heroku
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.[详细]
2023-03-28 17:49 分类:问答How to send list value in Ruby Sinatra?
I have a simple form where there is alist: <form method =\"post\" action =\"\"> <select>Select subject[详细]
2023-03-28 13:43 分类:问答I'm getting "Heroku push rejected, no Rails or Rack app detected" error w/ Sinatra app
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\"[详细]
2023-03-28 09:04 分类:问答Why am I getting the error "db_name must be a string or symbol"?
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[详细]
2023-03-28 02:55 分类:问答