Data dodania Pytanie
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
2017-01-11 23:01 Test production specific code with rspec - Sinatra »
I have this code to configure logging for production and test/development environments: class ApplicationController < Sinatra::Base configure :d...
(1) odpowiedzi
2017-01-11 19:01 Sinatra: form data is missing from the params hash upon submission »
I’m writing a pretty basic CRUD app in Sinatra (it’s a CRUD app that makes CRUD apps, for what it’s worth). The create functionality works fine,...
(1) odpowiedzi
2017-01-11 19:01 Sinatra Github OAuth Problems »
I am using the sinatra_auth_github gem to try and put GitHub OAuth into my Sinatra app. I was testing using the sinatra-auth-github-test example app f...
(1) odpowiedzi
2017-01-11 09:01 Server handler not found (warbler, winstone,jruby,sinatra) »
I am trying to create war file from my simple jruby app. when I run bundle exec rackup everything works fine and i can connect to it at localhost...
(0) odpowiedzi
2017-01-10 12:01 Hiding some of query string in rack »
I have written a sinatra app for displaying data from a database. The user can put a customer number into a form. This is then dealt with via a route ...
(1) odpowiedzi
2017-01-07 20:01 How to install ruby and bundler via Chef? »
I'm new to Chef and I'm trying, for hours now, figure out how to install ruby and install the gem bundler, I'm new to ruby too. I would like to clone...
(1) odpowiedzi
2017-01-07 08:01 Firebase authentication for Sinatra (Ruby) web app »
Is it possible to use Firebase for authentication of a Sinatra app in much the same way that I can use Auth0, and if so, how? The samples from Firebas...
(0) odpowiedzi
2017-01-07 03:01 Accessing instance variables within a Sinatra application »
This question has been rewritten because the way I originally wrote it was unclear. How do I take the values within @form_params and pass them to get...
(2) odpowiedzi
2017-01-06 19:01 SINATRA/Ruby - changing the name of the routes »
Here's the problem. I created an app and I have started doing some tidying up to make the code neater. I have changed the names of the paths from '/fw...
(0) odpowiedzi
2017-01-06 06:01 Ruby Sinatra Session Management Available in Class Methods? »
Just wondering if the scope of a session is manageable inside a custom object. I'm getting the following error while trying to set a session variable...
(0) odpowiedzi
2017-01-05 14:01 Cant load a class model in my main app sinatra controller, unless I require it »
I´m building a sinatra app and when I call an instance of a model class in my, main app controller it says: NameError at /play uninitialized constant...
(0) odpowiedzi
2017-01-04 23:01 Getting and displaying all files in a folder as links on the home page of my sinatra app »
I'm making a wiki in Sinatra and I have the following code, which works, it just strikes me as a little bit clunky. I'm trying to get all the wiki ent...
(1) odpowiedzi
2017-01-04 18:01 Can I get inline template as string in Sinatra? »
Motivation The inline template in Sinatra is very convenient (for me). If it is possible to extract there contents as string, more applications can ...
(1) odpowiedzi
2017-01-02 02:01 Ruby bcrypt non-salt password comparison »
I'm confused about bcrypt password hash retrieval and comparison. They are indeed equal, yet the comparison returns false. BTW I am using Sinatra, n...
(1) odpowiedzi
2016-12-31 19:12 Possible Chrome Extension Dev with Sinatra? »
I am trying to make a Chrome extension that shows information on the screen when a new tab is added, like Momentum and loads of other extensions. I wa...
(1) odpowiedzi
2016-12-30 19:12 Heroku ruby app - run gulp build process after deploy »
I have a ruby application hosted on Heroku, it's a Ruby Sinatra app and I am using gulp to build my sass and coffee files for the client. I have added...
(1) odpowiedzi
2016-12-30 18:12 Replacing ActiveRecord::ConnectionAdapters::ConnectionManagement in ActiveRecord 5 »
We are upgrading a Sinatra application from ActiveRecord 4 to ActiveRecord 5. Previously we had this line: use ActiveRecord::ConnectionAdapters::Conn...
(0) odpowiedzi
2016-12-30 15:12 Access Sinatra settings from Minitest test_helper »
I am trying to access a variable defined in Sinatra settings from my test helper with no luck. This is my code: Main app: require 'sinatra' set :fo...
(0) odpowiedzi
2016-12-29 17:12 rails + heroku: point root in routes.rb file to app.rb file »
I have a file called app.rb that runs a server when I run it on my local machine. I would like to deploy app.rb to Heroku so the server will run on H...
(0) odpowiedzi
2016-12-28 19:12 CSS slow response time with Sinatra »
I have searched high and low and cannot seem to find an answer to my question. I am creating a webpage using Ruby and Sinatra and I have had some issu...
(1) odpowiedzi
2016-12-28 01:12 Content of variable changing after read in ruby »
I am new to ruby (started yesterday) and I'm playing a bit with sinatra to build an API. I encountered an issue which left me without clue: post '/lo...
(1) odpowiedzi
2016-12-27 21:12 How can I deploy this Ruby/Sinatra app to Heroku? »
I'm trying to do my very first Ruby/Sinatra deploy (yay!), a "to do list" app website to Heroku. The code runs fine in Windows and Ubuntu environments...
(1) odpowiedzi
2016-12-26 19:12 SIdekiq doesn't perform async (Sinatra & Rack) »
I am really newbie to Ruby. I understand the language, but it is really hard for me to get the right way to structure project, there are a lot of arti...
(2) odpowiedzi
2016-12-26 18:12 How to get a Sinatra erb to report back its referring page in params »
For learning purposes, I am developing a Ruby/Sinatra "to do list" program. In views, I have the usual index page, which lists uncompleted tasks, and ...
(1) odpowiedzi
2016-12-26 07:12 Ruby threading/forking with API (Sinatra) »
I am using Sinatra gem for my API. What I want to do is when request is received process it, return the response and start new long running task. I ...
(1) odpowiedzi
2016-12-24 22:12 Sinatra Display CSV entries »
How do i display data from a csv file into a Sinatra-App? Sinatra: csv = CSV.read(data.csv) csv.each do |entry| @output = "#{entry[1]},#{entry[4...
(2) odpowiedzi
2016-12-24 02:12 Can I test that a Sinatra post method successfully saves to a YAML store? »
I can't find a basic explanation anywhere about how I can test, with Rack::Test, that a Ruby/Sinatra post method successfully saves data to a YAML sto...
(0) odpowiedzi
2016-12-21 19:12 Using multiple database connections on the same model with thread safety in Sinatra »
I have a Sinatra application that is written in jruby and compiled into java and deployed on multi threaded Apache Tomcat server. In one of the contr...
(0) odpowiedzi
2016-12-21 03:12 how do i edit the HTML in an index.erb file in sinatra »
``` How do i go about editing the HTML in an index.erb file in sinatra? keep in mind ive never used sinatra before so this is my first e...
(0) odpowiedzi
2016-12-20 20:12 Display data from AJAX cross-domain request in Sinatra application »
I'm trying to develop some kind of bookmaker's site parser which grabs data from certain divs with Google Chrome extension written on JS (JQuery) and ...
(0) odpowiedzi
2016-12-20 12:12 Ruby God: Run script to fill database before service start »
I am setting up a sinatra app along with god to monitor the process. I need to run a script before the service starts which ensure that all the collec...
(0) odpowiedzi
2016-12-20 03:12 Define sinatra request routes in included files »
I am using Sinatra and I would like to have my project structed in a way that keeps all requests for a specific action in separated files. The proble...
(1) odpowiedzi
2016-12-19 16:12 What is causing my Rack middleware to spike? »
The Rack Middleware and Heroku Request Queue occasionally spike in my Ruby/Sinatra app, which causes the app to hang until I manually restart the serv...
(0) odpowiedzi