Data dodania Pytanie
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
2017-08-29 00:08 Migrations: What is actually moving from point A to point B in migrations? »
In Active Record, when we deal with migrations, what exactly is moving? When I think of migrations, I think of something moving from point A to point ...
(1) odpowiedzi
2017-08-27 06:08 Cannot start Rack server because of NoMethodError »
I'm writing a tiny Sinatra application (Facebook Messenger bot), so I'm using facebook-messenger gem. Here's what I've got in my config.ru: require '...
(1) odpowiedzi
2017-08-26 13:08 Nginx doesn't work with Sinatra JSON route »
I've setup a Ubuntu 16.04 server with Nginx 1.12.1 and installed and configured Phusion Passenger 5.1.8 (Open Source) to work correctly. I've tested ...
(1) odpowiedzi
2017-08-25 13:08 How do I pass script name to layout from separate haml file »
This is what I'm currently using: haml :login_signup, :layout => :'main' From the login_signup haml file, I would like to pass the name of the J...
(1) odpowiedzi
2017-08-24 21:08 Sinatra Errno::ENOENT - cannot find file »
While trying to run this app with sinatra it throws an error, saying it cannot find a json file. When I test the methods outside sinatra, they work f...
(1) odpowiedzi
2017-08-24 16:08 How do I import different JS files into layout for different haml views »
Typically, I'd include those in each haml file, but because the main layout includes jquery, all new js files have to appear AFTER the jquery src. How...
(2) odpowiedzi
2017-08-24 13:08 Remember me functionality with Warden and Sinatra »
I'm trying to implement a remember me functionality in my ruby based application, it is the first time I'm doing such a function. I'm using Sinatra Fr...
(0) odpowiedzi