Data dodania Pytanie
2017-10-07 01:10 Need to break out a config method into its own namespace so it can have multiple configurations »
So I have a Sinatra::Base application that connects to Active Directory, and everything works perfect when there is only one Active Directory being qu...
(0) odpowiedzi
2017-10-04 22:10 Open-Uri hanging/timing out »
I am trying to use open-uri with Nokogiri class Script require 'nokogiri' require 'open-uri' open("http://www.ruby-lang.org/") {|f| f.eac...
(0) odpowiedzi
2017-10-02 23:10 Sinatra HTTP Auth: Different username/password for each subdomain »
I have implemented HTTP authorization to our Sinatra app, but now I'm trying to configure a different username/password for each subdomain of our app....
(0) odpowiedzi
2017-10-02 19:10 Custom action with kaminari-sinatra »
I want to use a custom route to paginate results using the Kaminari gem for Sinatra. However, I have not been successful in setting the parameters to ...
(0) odpowiedzi
2017-10-02 17:10 onData event for dashing not firing? »
I've made a widget called Status that mixes the status- class code from Number widgets with a Text widget. It doesn't seem like the onData event from ...
(0) odpowiedzi
2017-09-29 01:09 Details on executing Ruby code using Sinatra »
I have a Ruby script : require 'uri' require 'net/http' require 'openssl' require 'json' require 'pp' require 'opal' require 'ostruct' url = URI("M...
(1) odpowiedzi
2017-09-28 18:09 I can't access to my sinatra webapp url using docker and passenger »
I have to learn how to use docker, and how to dockerize a sinatra webapp. I've followed this tutorial : http://coding.jandavid.de/2016/01/22/dockeriz...
(0) odpowiedzi
2017-09-27 01:09 how do I define the path when running a Rake task with system command from another Rake task »
So, I have a rake task that runs as a chron task (its running on windows so this is rufus scheduler instead), this particular rake task sends data via...
(0) odpowiedzi
2017-09-25 15:09 CircleCi .yml Ruby without Rails test path in the run command »
I am trying to find the syntax to call my test file. I am not using rails/rake. Everything I am finding is using rails. That is not an option for me a...
(1) odpowiedzi
2017-09-25 02:09 Sinatra breaks driver.navigate.to in selenium »
I try to make simple Selenium script using Ruby and I use Sinatra for net interaction. Script needs to get data with POST (I make link for driver.navi...
(0) odpowiedzi
2017-09-24 15:09 How to test timestamps using capybara? »
I have a program in which a user can post a 'peep', along with it being timestamped. How can I test this using capybara? The problem is everytime a ne...
(2) odpowiedzi
2017-09-23 14:09 `<module:Types>': undefined method `/' for #<String:0x007fd44c8f5318> (NoMethodError) Datamapper »
I am receiving this error when attempting to run RSpec. I just was setting DataMapper up on my app and I have received this error. I have been trying ...
(1) odpowiedzi
2017-09-20 23:09 Setup Sinatra API with Create-React-App »
Does anyone know how to setup Sinatra routes for a React app generated using create-react-app? I've run the build command on the React app. Also, the ...
(0) odpowiedzi
2017-09-19 19:09 Automatic Reloading of Sinatra App mounted inside Rails App »
I've run into what I hope is an easy-ish fix for someone more experienced than me when adding a Sinatra app to an existing Rails app. I currently hav...
(1) odpowiedzi
2017-09-19 15:09 Mocking a post request with binary data in Sinatra »
I have an endpoint in my Sinatra application that will be receiving binary data as part of the body. The other application sending it data will have a...
(1) odpowiedzi
2017-09-17 21:09 Getting Sequel associations through Sinatra »
I'm trying to return json-formatted data from my Sinatra REST API. I currently have a bunch of associations set up, but I'm having trouble getting the...
(0) odpowiedzi
2017-09-17 16:09 Game method not recognizing my weapon parameter »
this is my first time using sinatra. I know global variables are EVIL, but I had to use them this first time round. You can also tell I am new to Ruby...
(0) odpowiedzi
2017-09-15 20:09 Unable to push sinatra app to heroku »
having trouble pushing my sinatra app to heroku based on the current setup. I have looked through all of the docs on heroku to figure this out but ala...
(0) odpowiedzi
2017-09-15 02:09 I'm trying to upload a file to DriveHQ using URI::FTP »
My code is require 'uri' uri = URI::FTP.build(['username:password', 'drivehq.com', nil, 'test.csv', 'i']) When I run this in IRB, I get => #&l...
(0) odpowiedzi
2017-09-14 12:09 How to close <a> tag right after <img>? »
This is what I'm doing: %p %a{href:'/a'} %img{src:'/img'} This is what it looks like in the HTML: <p> <a href="/a"> <img src=...
(2) odpowiedzi
2017-09-14 08:09 How do I associate multiple form inputs on a ruby back-end »
I have an app built on a Ruby back-end (not yet Rails, but using Sinatra at the moment). In the app, I have a form used to add subscriptions to peopl...
(1) odpowiedzi
2017-09-12 07:09 How to add associations between 2 Sequel models so more data can be displayed? »
I have the following 2 models require 'sequel' module Notes module Models class Note < Sequel::Model plugin :json_serializer, naked: ...
(0) odpowiedzi
2017-09-11 02:09 AWS Code Deploy, Deployment succeeds but start_server script fails »
I am attempting to run a ruby sinatra web server on an EC2 instance with a nohup & command. I have successfully got the site to deploy, and it ki...
(0) odpowiedzi
2017-09-10 23:09 Error when running cmd <rake db:migrate> - "No connection pool with 'primary' found" »
I'm trying to set up a SQLite Db for my sinatra app and am running into an error I can't figure out. I've looked up related questions but none of them...
(0) odpowiedzi
2017-09-07 13:09 Error in Remote Calabash Server: 'Connection refused" »
For the purposes of testing. I have three computers running 9 containers locally on top of a ruby Sinatra server, testing an Android app. I'm using ca...
(0) odpowiedzi
2017-09-06 16:09 How can we install FFMPEG for Ruby app on heroku? »
I am trying to install FFMPEG for a Ruby app(Web framework- Sinatra) on Heroku. I have tried heroku-buildpack-multi (github.com/ddollar/heroku-buildpa...
(1) odpowiedzi
2017-09-05 03:09 Does gmail have to be logged in to send messages via Sinatra/Pony? »
I'm currently using Pony with my Sinatra app and it's set up to send an email via gmail whenever a user registers. It works perfectly fine, however wh...
(1) odpowiedzi
2017-09-04 10:09 Using prometheus.io client in sinatra application »
I have a Sinatra application and I want to deploy prometheus.io client there. The Readme shows only how to deploy it using Rack. What is the most feas...
(1) odpowiedzi
2017-09-03 20:09 undefined method `bytesize' for {"COUNT(*)"=>0}:Hash »
An error is displayed for the client when it is not banned which is: undefined method `bytesize' for {"COUNT(*)"=>0}:Hash I use the mysql2 lib post ...
(1) odpowiedzi
2017-09-02 20:09 I badly wrote my ruby condition »
I do not understand why the conditions do not work, I would like the part to be executed, if the username and the password are null post '/login' do...
(2) odpowiedzi
2017-09-02 03:09 Upload an image using rest-client to sinatra »
I am trying to just upload an image from a ruby script to my server running Sinatra, and for the life of me I can't figure this out. Here is what I...
(1) odpowiedzi
2017-09-01 08:09 Sinatra JSON response looks accurate in WEBrick but doesn't work in Passenger/Apache »
So I have a small piece of Ruby/Sinatra code that returns a JSON as the response. The code works and the result is accurate in WEBrick, but in my Pass...
(1) odpowiedzi
2017-08-31 20:08 Sinatra using a websocket client to respond to a http request »
I am writing a web server that I would like to be RESTful, but the thing is that it has to interact with another server that communicates exclusively ...
(0) odpowiedzi
2017-08-31 18:08 Sinatra/EventMachine error: port is in use of requires root privelages »
The full error message is var/lib/gems/2.3.0/gems/eventmachine-1.2.3/lib/eventmachine.rb:530in 'start_tcp_server': no acceptor (port is in use or requ...
(0) odpowiedzi
2017-08-29 20:08 Add route to dashing sinatra application? »
I'm trying to add a route to my dashing application that will receive data from a webhook. I tried using the solution here, and while that did create...
(0) odpowiedzi