Data dodania Pytanie
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
2016-12-18 12:12 How to link between two controllers and two views in HTML/erb »
I am trying to make simple webboard application. In my question/show view, I have get method to link for action to answer_controller. But it seems not...
(1) odpowiedzi
2016-12-17 03:12 Sleeping in Ruby crashes Heroku app »
So I'm building a Ruby app in Sinatra and I want to set a delay before executing an action. Right now I have "sleep X," which does indeed delay the ac...
(0) odpowiedzi
2016-12-16 19:12 Migrating changes in table structure with Sinatra/Ruby/Heroku »
I have made my app with Sinatra/Ruby and deployed with Heroku. I made some extra columns to my database and manually dropped the table and put the new...
(0) odpowiedzi
2016-12-16 10:12 Ruby Error RangeError when post file »
I have an error "RangeError: RangeError" when I post a file throught my webservice. Sinatra version : sinatra (1.4.7) Ruby version : 2.3.1 See th...
(0) odpowiedzi
2016-12-16 07:12 Database configuration does not specify adapter (Sinatra + Nginx + Activerecord) »
I want run migrate with capistrano on production server. When I call command cap production deploy:migrate get error: Command: cd /home/deploy/sud...
(0) odpowiedzi
2016-12-15 17:12 AJAX request fails with internal server error in Sinatra app »
I'm creating a game in which a user's guess is sent to backend, where it is evaluated and then feedback in the form of an array is returned. I'm using...
(2) odpowiedzi
2016-12-14 13:12 How to split a Sinatra app with different scopes? »
I'm splitting a large Sinatra file into different files using registers. This is one way to have a modular Sinatra app using extensions. I'm ending u...
(0) odpowiedzi
2016-12-13 22:12 how to inject data into puma worker »
I'm using Puma in clustered mode, and I'd like to inject some configuration data stored outside the Puma configuration file into my workers. Is this ...
(0) odpowiedzi
2016-12-13 20:12 puma plus bundler: launch app using pumactl, but bundler aware »
I'm creating a Puma/Sinatra app and would like to use bundler to manage gem versions. I have a Gemfile, Gemfile.lock, etc. I can launch my app via: ...
(1) odpowiedzi
2016-12-13 12:12 Capistrano SQLite3::SQLException: no such table: users »
Ubuntu 16, ruby, 3.2, framework Sinatra. After cap deploy not running migration on production. I deploy with command cap deploy production my proje...
(2) odpowiedzi
2016-12-11 17:12 Sinatra I18n Fallbacks using Rack::Locale »
I'm trying to set up a simple Sinatra app with I18n, following the recommended Sinatra recipe, and using Rack:Locale to determine the language. My ap...
(1) odpowiedzi
2016-12-11 08:12 Can’t run ”gem install bundle’ in git bash terminal »
I'm new to Web development with Sinatra. I've been trying to run bundle install command in git-bash terminal, but it's says that: bash: bundle: comm...
(1) odpowiedzi
2016-12-08 09:12 Generate war file using warbler »
I am trying to generate war file using warbler for jruby, but i got stuck and i am getting this error: warble aborted! NoMethodError: undefined metho...
(1) odpowiedzi
2016-12-07 08:12 Getting a NoMethodError when trying to write to SQLite database »
I'm working with Sinatra to create a method to get data from a line separated text file and store them in a SQLite database. I'm using DataMapper to c...
(0) odpowiedzi
2016-12-05 18:12 Write to MongoDB on an existing AWS Virtual Machine from an existing Sinatra App »
I have been struggling with setting up the production environment for a Sinatra app. What I have so far is: The app itself already made and working ...
(0) odpowiedzi
2016-12-05 17:12 Get Sinatra request route/path »
Is there a way that I can get the request route in Sinatra. For example, I have a route: get "/:id/post" do # whatever end When I hit that endpoi...
(1) odpowiedzi
2016-12-05 10:12 How to run multiple Sinatra instances without anything else? »
I want to spawn a lot of configurable Sinatra servers. For example: require 'sinatra/base' class AwesomeOne def initialize port @sapp = S...
(1) odpowiedzi
2016-12-04 20:12 git clone and checkout using Sinatra »
I am new to Sinatra. I would like to do a git clone of a Bitbucket repository. I could redirect my Sinatra to my Bitbucket website using the following...
(0) odpowiedzi
2016-12-04 18:12 In ruby with sinatra, How to get I response with get method on rest client? »
I use ruby with sinatra and I used rest-client on import for payment. I got token that string typed through post method on specific url: '... /users/g...
(1) odpowiedzi
2016-12-04 14:12 How do I test the presence of a <title> tag containing the string "sample" in Sinatra with Rspec? »
Here is my code. main.rb require 'sinatra' get '/' do erb :sample end spec/app_spec.rb require File.expand_path '../spec_helper.rb', __FILE__ ...
(0) odpowiedzi
2016-12-03 20:12 Ruby 'require bunny' triggers what looks like a circular require »
This case has me stumped. I am writing a pretty simple Sinatra app which is causing what looks like a circular require issue specifically with require...
(1) odpowiedzi
2016-12-03 01:12 Watir gem w/ phantomjs not following oauth redirect »
I'm using the watir gem to login to salesforce using the omniauth-salesforce gem in a Sinatra app. While using a normal browser, it follows the 303 r...
(0) odpowiedzi
2016-12-01 21:12 How do I wait and send a response to an HTTP request at a later time? »
I am developing an API using Sinatra on the server-side. I would like to have an HTTP request which is made, but continues to hang/wait and keep alive...
(1) odpowiedzi
2016-12-01 14:12 How setting rvm in capistrano for Sinatra project »
I need in capistrano specify rvm for deploy Sinatra project to remote server I have following deploy.rb lock '3.4.0' set :application, 'sudoku' set...
(1) odpowiedzi
2016-12-01 11:12 Nginx + Capistrano + ruby project server error .rvm/ruby-2.3.1-p112/ruby: No such file or directory »
My settings capistrano: Capfile # Load DSL and set up stages require 'capistrano/setup' # Include default deployment tasks require 'capistrano/depl...
(0) odpowiedzi
2016-11-30 15:11 LoadError: cannot load such file -- rvm/capistrano »
I want deploy sinatra project. Run command cap production deploy. errors: cap aborted! LoadError: cannot load such file -- rvm/capistrano config/...
(0) odpowiedzi
2016-11-30 11:11 Timeout with ActiveRecord(ActiveRecord::ConnectionTimeoutError ) »
While creating an application using ActiveRecord with sinatra, I encountered such an error.      ActiveRecord::ConnectionTimeoutError at / cou...
(0) odpowiedzi
2016-11-29 23:11 Using Sidekiq with Padrino - Sidekiq does not inherit the environment »
I am using Padrino (0.13.2) with Sidekiq (4.2.7) and I have some Mailers set up in Padrino to fire off when things occur in my app. Here's the set up...
(0) odpowiedzi
2016-11-23 11:11 Making Sinatra 2.2.2 reload the compiled SASS »
What's the state of the art when it comes to making Sinatra reload compiled SASS files in development? I've found that when I'm editing pure CSS the a...
(1) odpowiedzi
2016-11-23 09:11 undefined method authenticated? (Sinatra + Warden) »
When I add the authorize! method in controller, I get an error NoMethodError - undefined method authenticated? for nil:NilClass My controller requ...
(0) odpowiedzi
2016-11-23 07:11 How to set authentication in Sinatra? »
I need simple authentication for blog. For a single person. Just login to the website Can't configure sinatra_warden. Write the line require 'rubyg...
(1) odpowiedzi
2016-11-22 18:11 session[:id] variable not being picked up within another route from sinatra »
I am following this tutorial here on setting up a user login https://learn.co/lessons/sinatra-user-auth It says that in order to save a session[:id] ...
(1) odpowiedzi
2016-11-21 22:11 how can i prevent a script from running while I'm launching the server? »
I have a script that queries a third party API when the script is called from within my sinatra application, but I do not want it to run when I am lau...
(0) odpowiedzi
2016-11-21 22:11 'uninitialized constant ActiveRecord::ConnectionAdapters::ConnectionSpecification::ConnectionUrlResolver' »
I'm trying to get an existing Sinatra (not Rails though) app running on Heroku, but whenever I try to run 'heroku run rake db:migrate' I get the follo...
(0) odpowiedzi