I wrote a teeny tiny Sinatra app that runs fine, locally, but for some reason as so开发者_运维技巧on as I put it online, all I get is \'Internal Server Error\'.
I am writing a small Sinatra-based app and would like each view to be able to insert various items into the layout, for example the page title or extra CSS/javascript references in the head.
Sinatra app: require \"rubygems\" require \"sinatra\" get \'/\' do \"Hello world. It\'s #{Time.now} at the server!\"
I\'ve got a Sinatra app that I\'m trying to run on Dreamhost that makes use of pony to send email. In order to get the application up and running at the very beginning (before adding pony), I had to g
I\'m trying to write a Sinatra app that will run on a sh开发者_如何学JAVAared Passenger server.For now, I\'d be happy just getting a \"hello world\", but something isn\'t working quite right.I have:
I have a basic Ruby app that I am building with Sinatra, Datamapper and has user authentication using OAuth. When I receive the data back from the Oauth service, I save a record of a new user in an sq
I\'m planning on using Sinatra for a new tiny webservice (WS) that I need to put together for a client.
I already installed jruby and gems seems to be installed nicely under jruby\'s directory so I don\'t have to worry about that. Now I would like to be able create a sinatr开发者_如何学JAVAa application
I开发者_如何学Python wrote a small app with Sinatra and have some admin routes (/admin/new, admin/edit/2, ...) and want to protect them with a .htaccess prompt. Can somebody tell me how I do that?Auth
Here is an outline of my app: require \'sin开发者_如何学JAVAatra\' require \'active_record\' ActiveRecord::Base.establish_connection(