sinatra
Unwanted whitespace in Erb view
Here\'s my sinatra code: get \'/\' do foo = \'not bar\' erb :index end My layout.erb <html> <head></head>[详细]
2023-03-27 19:31 分类:问答Why is "url_for" undefined in my application?
I\'m trying to use the url_for extension so my app can accurately find my static assets (tried the static assets extension as well, but it also complained of this same problem).[详细]
2023-03-26 14:08 分类:问答redirect from a sinatra app on heroku
I have a very simple sinatra app (teaser page) running on Heroku on a custom domain. All is working well.[详细]
2023-03-26 06:48 分类:问答Why do I need to run my sinatra app again when making changes and my environment is not :development?
I just implemented Compass configuration for my Sinatra app but when I change the environment to :test or :production and modify my files like screen.sass or index.haml my changes are not reflected wh[详细]
2023-03-26 06:46 分类:问答High load RESTful API in Ruby (sync/async implementation)
I\'m struggling with implementing a RESTful API that should return JSON response and should sustain very high load.[详细]
2023-03-26 01:34 分类:问答Concurrent writing to log file Sinatra, Rack, Thin
We have written an Sinatra application that uses Thin as its web server and rack as the middleware between the two. I w开发者_Python百科ould like to know if Rack is smart enough to allow concurrent wr[详细]
2023-03-25 06:19 分类:问答DataMapper problems on Heroku
I am trying to deploy a simple app to Heroku (Sinatra and using DataMapper for the ORM), and I am gettin开发者_StackOverflowg these errors whenever I try to submit my form:[详细]
2023-03-24 21:36 分类:问答Web Server Flow in the Rack OAuth-2 Server
I\'m trying to integrate the Rack OAuth-2 server into my sinatra application, to use it in a web-server flow implementation and I can\'t make it work :(. I the following code in the oauth controller[详细]
2023-03-24 21:05 分类:问答Error when adding an observer in Ruby
I am using Ruby 1.9.2, and I have a class that uses the observer mixin: require \'observer\' class Street[详细]
2023-03-24 14:04 分类:问答sinatra helper in external file
I have lot of helpers in my main Sinatra project_name.rb and I want to remove them to the external file, what is the best practice to do that ?[详细]
2023-03-24 11:59 分类:问答