Top "Sinatra" questions

Sinatra is a Domain Specific Language (DSL) for quickly creating web applications in Ruby with minimal effort.

Serving static files with Sinatra

I have one page website only using HTML, CSS and JavaScript. I want to deploy the app to Heroku, but …

ruby sinatra
Separate REST JSON API server and client?

I'm about to create a bunch of web apps from scratch. (See http://50pop.com/code for overview.) I'd like …

ruby-on-rails-3 rest backbone.js sinatra ember.js
Gem installation error: You have to install development tools first

I tried installing the gem 'sinatra-websocket', but when I ran gem install sinatra-websocket, I got this error... ERROR: Failed to …

ruby windows sinatra
Sending/Parsing multiple JSON objects

I have a Sinatra server that is returning multiple JSON objects from the database in a streaming manner. The objects …

javascript sinatra
Using Sinatra for larger projects via multiple files

It seems that in Sinatra all route handlers are being written into a single file, if I understand right it …

ruby sinatra
Logging in Sinatra?

I'm having trouble figuring out how to log messages with Sinatra. I'm not looking to log requests, but rather custom …

ruby logging sinatra rack
How to do a Post/Redirect/Get using Sinatra?

What's Sinatra's equivalent of Rails' redirect_to method? I need to follow a Post/Redirect/Get flow for a form …

ruby sinatra
How to get Sinatra to auto-reload the file after each change?

I am using # my_app.rb load 'index.rb' and start the sever like this ruby my_app.rb but …

ruby sinatra
Contact form in ruby, sinatra, and haml

I'm new to all three, and I'm trying to write a simple contact form for a website. The code I …

ruby sinatra haml pony
Encoding::UndefinedConversionError

I keep getting an Encoding::UndefinedConversionError - "\xC2" from ASCII-8BIT to UTF-8 every time I try to convert a …

ruby encoding sinatra sequel