Questions tagged [sinatra]

Sinatra is a Domain Specific Language (DSL) for quickly creating web applications in Ruby with minimal effort. It is an alternative to other Ruby web application frameworks such as Ruby on Rails, Merb, Nitro, Camping, and Rango.

Filter by
Sorted by
Tagged with
2 votes
1 answer

Idiomatic Ruby if/else in a Sinatra route

Apologies if this question doesn't fit the format here, seemed more appropriate here than SO due to the more nebulous nature of the question. Think mini tinyURL clone: POST to service to save the url +...
McDerp's user avatar
  • 45
1 vote
1 answer

Ensure that a Sinatra hash always has a valid value

I'm trying to ensure that a Sinatra hash always has a valid value. Is there a more-concise way to write this? ...
craig's user avatar
  • 173
2 votes
0 answers

Improving JavaScript processing of Ruby Regex

I have a basic webapp that basically serves the same purpose as, but for gsub. It runs some simple JavaScript, which POST's to a Sinatra app, which then updates page with the results. <...
Peter Souter's user avatar