sinatra
Rackup to use Thin instead of WEBrick
New to Sinatra, just development server up and running but rackup is using WEBrick instead of Thin, Thin gem is already installed, this has to be a simple configuration tweak but I don\'t know where.[详细]
2023-04-11 15:05 分类:问答When using eventmachine with sinatra, how can I close one http connection without closing them all?
I have the following code which will query the twitter streaming开发者_StackOverflow API for a certain string. When I open two tabs with different queries, they both work. However, when I stop one of[详细]
2023-04-11 14:07 分类:问答Display raw HTML in Haml and Sinatra
I have a simple Sinatra app that does a HTTP call and I want to display the response header and body in the app via Haml. Here\'s the HTTP output I need to display[详细]
2023-04-11 12:22 分类:问答already initialized constant, and required twice
Hi, all, i think this is a bug about the constant defined in sinatra, let\'s look my code. route.rb require \'sinatra\'[详细]
2023-04-11 08:35 分类:问答Transloadit: Sending 0 byte file while request.body.read is not empty
I\'m using transloadit and sending files with xhr using valumns file uploader. Files are sent to the server without errors (i checked size and content of request.body.read) but once I do:[详细]
2023-04-10 08:18 分类:问答Creating a ruby IO object from request.body.read?
I\'m using sinatra and transloadit and sending files with xhr using valumns file uploader. I need to create a IO object and fill it with data in request.body.read[详细]
2023-04-10 07:06 分类:问答How to stop a background thread in Sinatra once the connection is closed
I\'m trying to consume the twitter streaming API with Sinatra and give users real-time updates when they search for a keyword.[详细]
2023-04-09 20:40 分类:问答How to access global Sinatra configs inside custom Liquid template tags?
I\'m trying to create a custom Liquid template tag like this: class ScriptLoader < Liquid::Tag def initialize(tag_name, filename, tokens)[详细]
2023-04-09 14:04 分类:问答How do I create a URL to link between apps in Padrino?
I have a separate app called \"api\" that I\'d like to link to from my admin app.But if I do a link like:[详细]
2023-04-09 05:24 分类:问答Rhodes or Sinatra for iphone development?
开发者_高级运维i wanted to develop an iphone app in Ruby, so i was confused to go for which framework.. Rhodes or Sinatra..[详细]
2023-04-08 18:09 分类:问答