Top "Sinatra" questions

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

How to make Thin run on a different port?

I've a very basic test app. When I execute this command the server ignores the port I specify and runs …

ruby linux sinatra thin
wrong argument type Class (expected Module) (TypeError)

I'm writing some tests in webrat with sinatra, and as part of that I need sessions. The webrat wiki mentions …

ruby sinatra webrat
HTML5 Server-Sent Events with Ruby Sinatra

I'm new to Ruby and Sinatra, I'm trying to setup a simple HTML5 Server-Sent Event with it, The code below …

ruby html sinatra server-sent-events
Is there a .NET framework similar to Ruby's Sinatra?

Does anyone know if there is a .NET library/API similar to Ruby's Sinatra? Just wondering since with the new …

.net ruby frameworks sinatra
Sinatra unit test - post with JSON body

I am trying to build a unit test for a REST API I built using Sinatra. For right now I …

ruby unit-testing sinatra rack-test
What does it mean to be a micro framework?

Ruby Sinatra and PerlDancer are called "Micro web framework"? What does it mean to be a micro framework? Are micro …

ruby perl sinatra web-frameworks
Slicing params hash for specific values

Summary Given a Hash, what is the most efficient way to create a subset Hash based on a list of …

ruby hash sinatra sequel
Displaying Error Message with Sinatra

I'm writing a simple app that takes standard input from the user. As for the email entry, I have it …

error-handling sinatra datamapper
How do I use .html.erb as a file extension for my views with Sinatra?

If I have the following Sinatra code: get '/hi' do erb :hello end This works great if I have …

ruby sinatra erb
How to set cookie in faraday

I'm using Faraday as an HTTP client to test my HTTP service (based on Sinatra). It's very powerful for me, …

session cookies sinatra faraday