Data dodania Pytanie
2017-02-13 12:02 How can i setup puma ssl_blind parameter, outside of config/puma.rb file, using sinatra as framework? »
Why i need this? Because i will pass dynamically to the application, the port and the ip address that will be use. Inside config/puma.rb it is workin...
(0) odpowiedzi
2017-02-13 10:02 no method error at index get request ruby »
Any experts on hand for what I am sure is a quick fix. I am running sinatra with ruby controller & models, with erb view files. I only want to que...
(1) odpowiedzi
2017-02-12 22:02 Losing access to public assets ActiveRecord Sinatra »
I have a layout.erb file that is yielding to various erb files in my project. The layout has a basic header with an image in it, as well as a backgrou...
(0) odpowiedzi
2017-02-10 21:02 React JS: no answer from Sinatra server with fetch call »
I am quite new to Sinatra and React JS, therefore I just wanted to make an GET call from my React website on a Sinatra server to display a plain text....
(1) odpowiedzi
2017-02-09 16:02 Sinatra Static Page »
In my public folder, I have a file index.html. I want to be able to just use the url localhost:4567 to display the page (without displaying localhost:...
(2) odpowiedzi
2017-02-06 05:02 taking the value of an input already on hostgator.com, and storing it on another page. Set up using Ruby »
I set up a webpage on a hostgator server. There I have an HTML page with a modal with an input for users to add their email. I want to take that em...
(1) odpowiedzi
2017-02-03 20:02 Inline templating does not work along with modularity? »
I'm making a modular application: main.rb require "sinatra/namespace" require "haml" Dir.glob("servers/*/server.rb").each do |server| require_...
(0) odpowiedzi
2017-02-03 11:02 Sinatra and Rails - starting a submoduled app »
I've been basing an app with a blogging app (octopress) submoduled, on the following guide: http://www.nickhammond.com/setting-octopress-jekyll-blog-...
(1) odpowiedzi
2017-02-02 18:02 Images inserted into HTML properly but not displayed - size is 0*0px »
I am using a HAML template of a bootstrap carousel to display all images from a folder. The images should not be displayed with a size of 0 by 0 pix...
(1) odpowiedzi
2017-02-02 17:02 How do I loop through two array and display via highcharts? »
The example on highcharts github page has the following code f.series(:type=> 'pie',:name=> 'Total consumption', :data=> [ {:name=&gt...
(0) odpowiedzi
2017-02-02 07:02 Using Sinatra with Rspec for test JSON »
I am new to Rspec and Sinatra and wanted to ask how one would go about testing the following. I think I configured Sinatra for work with Rspec all cor...
(1) odpowiedzi
2017-02-01 21:02 JavaScript in HTML: Getting undefined input value? »
For some reason, when I enter a value in the following script, the value of ISBN is always undefined. I'm not sure why this is the case. I have set th...
(2) odpowiedzi
2017-01-31 18:01 Having multiple Ruby Sinatra webservers with the same codebase »
I work a lot with Sinatra as webserver since my apps are small and so is the userbase for each app/site, I also like the freedom and the small number ...
(0) odpowiedzi
2017-01-30 22:01 Virtual Box port forwarding misery with Ruby Sinatra:4567 / Shotgun:9292 »
I've got a VirtualBox CentOS 7.0 Guest OS on a Windows Ten Host for the purposes of development, and the port forwarding simply isn't working. I have...
(1) odpowiedzi
2017-01-29 18:01 dm-postgres-adapter loading error in heroku »
I deployed a Sinatra app in Heroku. I am unable to migrate the postgres database because of a dm-postgres-adapter loading error (see below). Any idea ...
(0) odpowiedzi
2017-01-29 18:01 Intermittently breaking tests in my hand-rolled Sinatra app. Related to file processing? »
Summary: After adding logic to save user account data, my code seems to work fine and sometimes all my (many) tests pass. But sometimes they fail seem...
(0) odpowiedzi
2017-01-29 18:01 In FullCalendar, how to edit event and save in JSON? »
In an MVC application (Ruby Sinatra), I'm feeding events from a JSON file through routes using POST to fullcalendar. My code (views) looks like this: ...
(0) odpowiedzi
2017-01-28 22:01 New sinatra object for every requests but initialize only called once »
I created a very simple web server through the following script: require 'sinatra' class MyApp < Sinatra::Base def initialize(app = nil) ...
(1) odpowiedzi
2017-01-27 17:01 Mailgun::CommunicationError via nginx '301 Moved Permanently' error »
I have a Ruby web app that sends email via Mailgun. My Mailgun account & gem are properly set up and I can send emails manually (via curl, for in...
(0) odpowiedzi
2017-01-27 11:01 How to memoize MySQL connection client cleverly in external module used from e.g. sinatra? »
I think the question does not pin-point to the real problem, I have difficulties to nail it down precisely and concisely. I have a gem that implement...
(1) odpowiedzi
2017-01-24 15:01 How can I get File and Folder location input in Sinatra? »
I dont want to upload a file, I want to have the user select a folder and a file (2 separate actions) so that I can use their Paths for another action...
(0) odpowiedzi
2017-01-23 21:01 Ruby Unicorn - Thread Exception »
I have a Sinatra Application which has connections to a Cassandra Cluster and to a Postgres. For the Cassandra Connection I'm using the datastax cassa...
(1) odpowiedzi
2017-01-22 03:01 Making an Ajax call to Sinatra »
So what I've done is made a page using Sinatra where a user can enter info, and when that info is submitted I grab it with a post method, I then use t...
(2) odpowiedzi
2017-01-18 23:01 Parallel POST requests to DB with Ruby/DataMapper »
I'am trying to implement kind of a matchmaking REST service for the game. My matchmaking table is simple as ID (Serial) Client_Name_1 (String) Clie...
(0) odpowiedzi
2017-01-18 18:01 Sinatra App Routes Not Working As Anticipated »
I've been doing a Ruby course on Skillcrush (still very much an amateur) and have come across a part of the course where my code just doesn't work. T...
(1) odpowiedzi
2017-01-17 20:01 Sequel + ADO + Puma is not threading queries »
We have a website running in Windows Server 2008 + SQLServer 2008 + Ruby + Sinatra + Sequel/Puma We've developed an API for our website. When the acc...
(1) odpowiedzi
2017-01-17 14:01 Stripe Request failed: payment required(402) »
I keep getting the above error when testing my server and i cant see why. I succesfully created a managed account previously then when i want to add ...
(1) odpowiedzi
2017-01-16 21:01 Using Sinatra and Stripe for an iOS app »
I would like to use ruby+sinatra to create the server files needed to process charges, what are the steps to do this? It seems like a simple process...
(0) odpowiedzi
2017-01-15 22:01 Ruby/Sinatra: Load additional code without restarting web app »
I want to build a plugin system for a web app I'm writing. I don't want to have to restart the application every time a plugin is added/removed/enable...
(0) odpowiedzi
2017-01-14 16:01 nginx server with Unicorn and Sinatra not logging crashes »
I have a server using Ruby, Sinatra, Unicorn and nginx. I experienced a crash recently, which re-producing the issue while running in Terminal, I can ...
(1) odpowiedzi
2017-01-13 20:01 How to fix a "value too long for type character varying(255)" error »
I'm trying to save a file so that I can upload it to stripe using CarrierWave, but I'm getting the error: ERROR: value too long for type character va...
(1) odpowiedzi
2017-01-13 08:01 Docker build unable to install pg gem in Sinatra project »
I've reviewed all the posts on SO with similar errors installing the Postgres pg gem. My issue is unique: I can successfully add Postgres to my Sina...
(0) odpowiedzi
2017-01-13 03:01 Make Sinatra Helpers available only in some routes (modular application) »
I have two different versions of an application that use slightly different versions of some methods. module Sinatra class MyApp < Sinatra::Base...
(1) odpowiedzi
2017-01-12 11:01 Is there any way to write RSpec test cases that would test directory or file presence »
I have working project in Sinatra framework for which I have to write RSpec test cases. Herein we pass an argument to a method which then generates a ...
(0) odpowiedzi
2017-01-12 01:01 Passing jpg file directly on from backend server »
I'm uploading an image file from my app via JSON to my ruby backend hosted by Heroku. It is then supposed to be passed to stripe via their gem via a p...
(0) odpowiedzi