sinatra
How, in Sinatra, to pass a Request Body to other classes?
I\'m using a Sinatra app to receive server requests and I want to dissect them in a separate class I call \"request\", but when I pass the request object the body gets dropped.Trying to read the reque[详细]
2023-03-19 11:53 分类:问答resque-web authlogic error when trying to start rails server [closed]
Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow.[详细]
2023-03-19 10:21 分类:问答nestacms and webbynode rapp
I would like to deploy a nestacms blog on webbynode by using the webbynode gem as allways I do with rails. Altough Webbynode seem to support Sinatra and Rack application easily, I get a WARNING during[详细]
2023-03-19 08:59 分类:问答CSS not showing up with ERB
I\'ve just hosted something on Heroku, and whenever I opened the app it worked just fine with the css being linked as such:[详细]
2023-03-19 07:37 分类:问答Simplest way to add Ruby script to a static website for AJAX
I have a simple portfolio website, which is just a set of static HTML files and some jQuery. Right now I\'m trying to add a simple contact form which is submitted via AJAX, so I need to somehow proc[详细]
2023-03-19 02:42 分类:问答How does Sinatra define and invoke the get method?
I\'m pretty curious about how this thing works. after require \'sinatra\' then I can invoke get() in the top level scope.[详细]
2023-03-19 01:24 分类:问答serving and load balancing for Rack-based web services?
as part of our architecture, we are using internal-only HTTP-based web services for data access which needs to be shared across applications.currently they are implemented as Sinatra apps.[详细]
2023-03-19 00:36 分类:问答Sinatra/Haml: How to execute Ruby code inside Javascript?
I\'m writing a Sinatra + Haml app, and in my Javascript code, I want to be execute some Ruby. In开发者_运维百科 erb, the following works:[详细]
2023-03-18 20:53 分类:问答Load error when trying to include custom module
Same app, different problem. I\'m working on an app using the Dan Benjamin \"Meet Sinatra\" screencast as a reference. I\'m trying to include a custom authentication module, which is housed in a lib f[详细]
2023-03-18 08:48 分类:问答Associating one class to belong to two different classes in DataMapper using Sinatra
I am working with DataMapper and Sinatra to create a simple app. Here\'s the structure: The app has Accounts. Each account has users and campaigns. Each user has comments that should be related to a[详细]
2023-03-18 04:59 分类:问答