Skip to main content
0 votes
1 answer
35 views

In my very simple Sinatra app I have a home page on which there is form which needs to be submitted through AJAX and the HAML template needs to execute some JS code. And I need to set the Content-...
Jignesh Gohel's user avatar
0 votes
0 answers
43 views

I have a small sinatra app, which I am using primarily over REST (so far) to run and automate some data processing tasks (register new data sets, and then assign processing tasks etc). Anyway, to help ...
Marc Hoeppner's user avatar
0 votes
0 answers
131 views

Problem I have a ruby sinatra app running in docker. I would like to interactively debug this app (in VSCode). Existing App docker-compose.yml my_sinatra_app: container_name: my_sinatra_app ...
terrywb's user avatar
  • 4,016
0 votes
1 answer
74 views

Setup # Gemfile gem 'rspec-swag' # config.ru map '/orders' do run Web::OrdersApp end map '/admin/orders' do run Web::AdminOrdersApp end # rspec ...
gayavat's user avatar
  • 19.5k
0 votes
0 answers
62 views

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0&...
Ian Lewis's user avatar
0 votes
0 answers
92 views

I have a bash script that takes several seconds to finish running. Because of this, popen3 seems to be cutting off the output, simply capturing the beginning echo statements in my bash script. How do ...
Khanrad's user avatar
  • 139
0 votes
0 answers
69 views

I have set up a Ruby 3.2 app with cPanel on a hosted system. The rubyhome directory is ruby.myDomain.co.uk. It contains config.ru and app.rb and no html files. A subdirectory of rubyhome is /public ...
perplexed's user avatar
-2 votes
1 answer
80 views

I'm doing this: require 'rack/test' data = # some binary data, for example, ZIP archive put('/foo', data, 'content_type' => 'application/octet-stream') Works just fine, until I put the % symbol ...
yegor256's user avatar
  • 106k
0 votes
2 answers
68 views

I have an app in Sinatra that accepts requests at the root and with a name using: get '/' 'Root page' end get '/:name' #Some code here end When hosting the application behind a reverse-proxy ...
N.K's user avatar
  • 15
1 vote
1 answer
86 views

I'm trying to design a helper for HAML, which would work like this: %table - tabular(items) do |i| %tr %td = i[:title] I expect it to render the following HTML: <table> <tr>&...
yegor256's user avatar
  • 106k
1 vote
1 answer
187 views

I am working on a Ruby project using Sinatra version 3.0.6 and Ruby version 3.0.0. I am using the PaperTrail gem (version 15.1.0) to track changes in my models for auditing and version control ...
xmarston's user avatar
  • 883
0 votes
1 answer
223 views

I'm using Kamal to deploy a Sinatra web app and within that I'm using Grover to process pdfs. The problem I've got is that when I to https://myserver.com/pdf3 I get the following error; Grover::...
map7's user avatar
  • 5,126
1 vote
1 answer
550 views

This is the code that works just fine: require 'sinatra' post '/foo' do "Equals to #{params[:a]}!" end If I send POST request, it returns all right: $ ruby foo.rb -p 8888 $ curl -X POST -...
yegor256's user avatar
  • 106k
1 vote
1 answer
95 views

I have a form submission in Sinatra that's not showing any received params. Chrome is showing the form submission payload as proper, so the form is fine. It's just not making it through to Sinatra ...
Rich_F's user avatar
  • 2,116
0 votes
1 answer
68 views

I have a Sinatra 4 app, and I'm trying to load a CSS file. I have placed it in /public/application.css and in my view's header I have added <link rel="stylesheet" type="text/css&...
Sig's user avatar
  • 6,150

15 30 50 per page
1
2 3 4 5
358