This works, but it was a stab in the dark. I know little Ruby. What\'s the accepted way to serve a plain old file for a given resource?
I have the following small Sinatra application (I\'ve removed the extra unneeded code): helpers do def flash(args={})
I have an application that I am using Active Record to access a database.I\'开发者_如何学Cm trying to take the information and put it into a hash for later use.
I have an application class class MyApplication < Sinatra::Base # ... do something ... end and a config.ru file
I\'m trying to get this Sinatra GET request to work: get \'/:year/:month/:day/:slug\' do end I know you can get one param to work with block 开发者_StackOverflow中文版parameters:
After asking this question, I started using Sinatra as a way to serve web pages. This evening, a friend of mine and I started to test the speed of the server.
I have a small Sinatra app which generates html fragments for me from an ERB template. How do I html_escape the output?
I have a small Sinatra app I\'m running on a shared hosting account using Passenger. However, the first time the app is accessed after a while, I get a Passenger error page saying the applica开发者_开
I would love to give my windows based desktop applications a web interface and vice versa.My 开发者_StackOverflow社区desktop application is written in wxRuby and the webserver is Sinatra (using webric
Take the followi开发者_运维百科ng code: ### Dependencies require \'rubygems\' require \'sinatra\'