Top "Sinatra" questions

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

How to convert a Net::HTTP response to a certain encoding in Ruby 1.9.1?

I have a Sinatra application (http://analyzethis.espace-technologies.com) that does the following Retrieve an HTML page (via net/http) …

ruby http encoding sinatra ruby-1.9
Streaming data from Sinatra/Rack application

I am trying to stream textual data (XML/JSON) from a Ruby (1.9.1p378) Sinatra (1.0) Rack (1.2.1) application. The suggested solutions (e.…

ruby sinatra rack
ActiveRecord::ConnectionNotEstablished - No connection pool for X

I can't make my sinatra/ruby app hosted on heroku works as desired. I fiddled with some setup trying to …

ruby-on-rails postgresql sinatra rails-activerecord puma
The InstanceMethods module inside ActiveSupport::Concern.. Deprecation Warning

I have a portfolio website built in Sinatra. I haven't worked on it for a while, been doing some Rails. …

ruby sinatra deprecated activesupport
How do I get Sinatra to refrain from adding the X-Frame-Options header?

I am using Sinatra to return some IFRAME contents, and I'd like to allow cross-domain src. Unfortunately, Sinatra is automatically …

ruby iframe sinatra x-frame-options
Sinatra: Undefined method bytesize for Hash

I'm creating a Sinatra app that takes an uploaded CSV file and puts its contents in a hash. When I …

ruby hash sinatra thin webrick
Get sinatra environment from within instance method

What's the proper way to determine the environment? Right now I'm using: class Main < Sinatra::Base get '/' …

ruby sinatra
sinatra helper in external file

I have lot of helpers in my main Sinatra project_name.rb and I want to remove them to the …

sinatra
How to pass an argument when calling a view file?

I wrote a webform using Sinatra and Haml that will be used to call a Ruby script. Everything seems fine …

ruby sinatra haml
Thoughts on using express.js instead of Ruby on Sinatra?

I'm working on a social app and considering using express.js/nodejs instead of my original choice, Sinatra/Ruby. I'm …

javascript ruby node.js sinatra express