I was looking at the rails 3 architecture in order to understand the process of dispatching a request . The whole process is quite simple. Application is a rack application which finally delegates its
Running either alone works fine, but when running both together开发者_高级运维, it crashes hard, at what seems like Magick::Image#new (the first call I make to it).
How to test Sinatra application which is using session? get "/", {}, {\'rack.session\' =>{ \'foo\' => \'blah\' } }
I moved my application off of Rails early in 2009 because I didn\'t need or want all of the features in that framework (ORM, MVC etc) and didn\'t like the large footprint we were generating (200Mb). M
Is there a way to tell which port a Rails application (or a generic Rack app) is running on in an initializer ?
I run a webpage using the Ruby web-framework Sinatra on my Ubuntu server. Today I looked to my processes and found these two lines:
I\'m using a very simple Sinatra app that works well. However, every log message is repeated three times. I can bring that down to two by disabling the Sinatra logging with
I\'m trying to implement http basic authentication in rails metal. Using this code: class Api def self.call(env)
I have created an Asynchronous version of Rails 3 that I would like to integrate with a WebSocket implementation.
Hey guys, I\'m trying to make the rack middleware NotFound to work with rails3 but I needed to make some changes to return some json, so I basically defined a new class :