sinatra
How can I get Sinatra to return a record matching today's date?
M开发者_运维百科y Sinatra app is a collection of notes. Each note is assigned a (future) date when it should be published:[详细]
2023-04-13 07:52 分类:问答Using Capybara to test pure JavaScript application
I\'m having some problems using Sinatra with Capybara. I want to test a pure javascript application. It\'s just a plain index.html that is being served by Sinatra.[详细]
2023-04-13 05:04 分类:问答Sinatra App 404 Error In Production Mode
My productions setup\'s as follows: Ubuntu 10.10 rails 3.1.1 Passenger 3.0.9 Sinatra 1.3.1 Apache 2.2.17 I have tested my app on my development machine without issue but when I deploy to my produc[详细]
2023-04-13 04:36 分类:问答Rack (Sinatra) App pointing '/' to parent's root when deployed in subfolder
I have a bunch of small sinatra apps, and now I have to publish them under SSL HTTP as well. I have https://secure.mydomain.com/ and I want to publish those apps in subdirectories:[详细]
2023-04-12 17:01 分类:问答How to format datetime in ruby with Sinatra and Twitter Gem
I\'m completely new to ruby and I\'m trying to format the created_at field pulled in from the Twitter gem. I know in rails you can use time_ago_in_words for rails, but I was wondering how you can do t[详细]
2023-04-12 10:39 分类:问答Sinatra, Rack::Test, and Conditional GET requests
I\'ve got a Sinatra 1.2.0 app that is doing Last-Modified validation caching with Rack::Cache.Things are working great-- I call last_modified in my route body and if the cache has an up-to-date copy,[详细]
2023-04-12 01:30 分类:问答Stream console output through HTTP (with Ruby)
I开发者_运维问答 am trying to run some commands remotely and SSH\'ing in to the machine is not an option. What I am trying to do is setup a Sinatra app that runs some specific commands and streams the[详细]
2023-04-11 22:19 分类:问答Use Log4r as logger in Sinatra App
I want to use log4r with log-levels info, warn and error in a Sinatra 1.3.1 app. The output should go to 开发者_运维知识库requests.log (http requests), error.log and sinatra.log (other outputs).[详细]
2023-04-11 20:51 分类:问答Sinatra + Rack::Test + Rspec2 - Using Sessions?
It\'s the first time I\'m working with Sinatra and I just can\'t get sessions to work in my tests. I have enable :sessions in my app.[详细]
2023-04-11 20:02 分类:问答Sinatra/Carrierwave: how to update a record while using an existing image?
My super-simple Sinatra app is a list of notes, and each note has an attached image. I\'ve got a \'put\' route set up that lets me update notes, but unless I re-upload the image, I lose it (note.imag[详细]
2023-04-11 16:20 分类:问答