Data dodania Pytanie
2017-08-15 17:08 Multiple lists in a Dashing widget »
I've cloned the Dashing List widget and edited it so it'll contain three separate lists, like in this image. The job associated with the widget makes ...
(1) odpowiedzi
2017-08-10 06:08 Ruby Http gem (http client) inside Sinatra POST »
I am trying to relay a GET request so when the user does a POST request to the server then the server does another GET request to some other URL and r...
(1) odpowiedzi
2017-08-10 04:08 Do the .rb files in your db >>migrate have to be the same name as the rb files in your model folder? »
I am fresh into Sinatra and Activerecord and I noticed I get a lot of errors such as LoadError: cannot load such file -- ./model/character_houses ...
(1) odpowiedzi
2017-08-09 19:08 Sinatra::Warden undefined method `authenticated?' for nil:NilClass »
I'm trying to use authentication for my Sinatra web application with Sinatra_warden module, but when I point to an authorized site, it says: NoMethod...
(1) odpowiedzi
2017-08-09 19:08 JSON to HTML in ruby »
I have some data that is being displayed in JSON format as shown below. I want to convert this JSON data into HTML table/format. Can someone tell me w...
(0) odpowiedzi
2017-08-07 17:08 How to change layout content the same throughout all erb files »
I am new to using sinatra I have in my layout erb file a navbar that stays consistent through all my pages using yield At the same time I have this h...
(1) odpowiedzi
2017-08-06 04:08 Unicorn+Sinatra+Nginx | FATAL error adding listener »
I have a Sinatra application hosted using Nginx and Unicorn. it went down when I upgraded the operating system (Ubuntu 14.04.5 LTS) on the server, and...
(2) odpowiedzi
2017-08-04 16:08 Install chromedriver using a remote host »
I deployed my application using Ruby, Sinatra and Redis DataBase, on my ubuntu remote host named Scaleway. In this way, i've install all what i need,...
(1) odpowiedzi
2017-08-04 13:08 Why using POST method in a form returns Error 404? »
I am completely newbie in ruby, so I made a form with POST http method, but it fails as follows: ruby sinatra_msg.rb [2017-08-04 07:47:50] INFO WE...
(1) odpowiedzi
2017-08-02 19:08 Ruby rest Sinatra server with Perl Client »
My Ruby server require 'sinatra' set :port, 8080 get '/get' do "GET Hello World" end post '/post' do "POST Hello World" end Ruby Client - Work...
(0) odpowiedzi
2017-08-02 11:08 How to deploy a Ruby app on Heroku using Sinatra and Watir gem »
Hi i've some trouble to deploy my Ruby application on Heroku using Sinatra and Watir gem. I have to load a chrome window, that's why i read the messag...
(1) odpowiedzi
2017-07-31 17:07 Ruby version and project not matching »
When I run, bundle I see the following: Your Ruby version is 2.5.0, but your Gemfile specified 2.4.0.pre.dev my Gemfile looks like: source 'https:...
(2) odpowiedzi
2017-07-31 15:07 Dynamic array of hashes in Sinatra »
I have an array of hashes that I want to dynamically change the content on the page with. How do I show all the names of the hashes and when clicked, ...
(0) odpowiedzi
2017-07-25 06:07 How do you deploy a sintra app on heroku »
How do you deploy a sinatra ruby application to heroku without having a database. ...
(0) odpowiedzi
2017-07-23 06:07 Generating *.mobi ebook on sinatra rack webrick server in daemon mode doesn't see images »
I have a sinatra app (Github) for generating ebooks in format *.mobi using kindlegen program from amazon (I am using this gem). I start server with: ...
(0) odpowiedzi
2017-07-21 21:07 Stripe Sinatra Subscription »
I'm am able to create customers using Stripe/Sinatra, I have created some plans for subscription. How to I change the customer and add them to the sub...
(1) odpowiedzi
2017-07-20 09:07 Build a Sinatra server that displays the current job postings when I visit that server’s root path »
I currently have a scraper file called scraper.rb. I need to figure out how to take the output from this and have it display on a Sinatra server. If y...
(1) odpowiedzi
2017-07-19 18:07 How to pass config file to Puma & Sinatra? »
I have a Sinatra app that's deployed to Heroku. I want to configure Puma via a puma.rb config file to have multiple workers, but both examples from t...
(2) odpowiedzi
2017-07-19 14:07 uninitialized constant Timeout::Error at Heroku »
This is what I see in my Heroku logs: heroku[web.1]: Starting process with command `bundle exec rackup config.ru -p 44765` app[web.1]: bundler: faile...
(1) odpowiedzi
2017-07-16 07:07 set environment variable in ruby and pass it to shell »
I am running a sinatra web app that gets a file (upload) from the user. It then transfers the file to a server via scp. Can I grab the filename from t...
(1) odpowiedzi
2017-07-14 06:07 Role-based authentication / permissions in Sinatra »
I am writing a web application in Ruby, using Sinatra. The application will have a number of restricted routes that users will not be permitted to acc...
(0) odpowiedzi
2017-07-12 23:07 What is the recommended way to handle large file uploads to s3? »
I'm using AWS SDK for Ruby to upload large files from users to s3. Bare with me, this is not a Ruby question, so anyone using s3 can answer. The serv...
(1) odpowiedzi
2017-07-12 15:07 oauth issue with basecamp »
I'm getting the following error: --- :error: 'Unsupported type: nil. We support user_agent and web_server.' when I try to redirect using this ur...
(1) odpowiedzi
2017-07-12 07:07 PG::ConnectionBad: PQsocket() can't get socket descriptor - Sinatra »
Everytime I encounter this error, I manually go and restart the connection. How can I have Sinatra automatically reconnect to Postgre database after a...
(0) odpowiedzi
2017-07-11 20:07 Ruby: NameError at '/signup' uninitialized constant User »
I'm new to Ruby and working on creating a form that creates a new user when submitted. I have created my database (rake: 12.0.0) and am able to edit i...
(1) odpowiedzi
2017-07-10 20:07 Sequel::AdapterNotFound: LoadError: cannot load such file -- mysql »
When I am trying to migrate files using command prompt: sequel -m db/migrations/ mysql://root:root@localhost/todo I get the following error: Erro...
(0) odpowiedzi
2017-07-10 19:07 Odd behavior with Ruby bundler dependencies »
I am trying to write a simple HTTP API wrapper over calabash-android using sinatra, but I'm running into some issues. I get NoMethodFound errors any...
(0) odpowiedzi
2017-07-10 00:07 Can't send/receive post data to API Server Anugularjs »
Could someone please try to assist me ? This has been racking my brain for quite sometime and I've googled and searched Stack for solutions but was un...
(1) odpowiedzi
2017-07-09 11:07 change name of HTML <select> form Attribute in a for loop »
In my code I create duplicate copies of a fieldset based on user input using the code in the snippet. My issue right now is that when the user submits...
(1) odpowiedzi
2017-07-06 14:07 How to push data into widget using dashing dashboard »
I want to push numeric data from a file to my dashboard. I am using the following .rb file as job for pushing the data SCHEDULER.every '30s' do var ...
(1) odpowiedzi
2017-07-06 06:07 Superclass Sinatra::Response »
In Sinatra I'd like to use a custom class for the response object. My custom class would superclass Sinatra::Response. However, I can't find where Sin...
(0) odpowiedzi
2017-07-06 03:07 How to push to AWS EC2 Service Container from a specific git branch (ie 'staging') »
I'm completely new to AWS, EC2, and the Service Container, but I did manage to successfully push my sinatra application with docker fairly easily foll...
(1) odpowiedzi
2017-07-05 15:07 Can't access local Sinatra server (win10 + Ubuntu on Windows)? »
I can't seem to access Sinatra's local server. I have a win10 machine and I have my servers running in an Ubuntu on Windows. Sinatra has been installe...
(1) odpowiedzi
2017-07-03 04:07 Twilio API Outbound Call Error: 11200 »
I am building a simple reminder application that is using the Twilio APIs to send reminders via phone calls. I was following the tutorials and hit a d...
(0) odpowiedzi
2017-07-02 09:07 sql add user input to existing value »
I'm using a psql database and the rest is Ruby using Sinatra. I've got my controllers, my models, my views, etc. I'm doing a little inventory app and...
(1) odpowiedzi