Data dodania Pytanie
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
2016-11-20 10:11 Ruby on sinatra, JSON::parserError issue and 757: unexpected token »
I use rest API on Ruby with sinatra. I got payment information from IAMPORT,,, def get_authrestapi() @key = IMP_KEY @secret = IMP_SECRET ...
(1) odpowiedzi
2016-11-18 20:11 How to open localhost from another device on my network? »
I made Sinatra small App to help me transfer files from my phone to my pc and now I'm trying to open it from my phone and can't access, what should i ...
(2) odpowiedzi
2016-11-18 05:11 Outputting method result to erb »
I'm working on an application that creates random sentences. I have it working as a console application, and want to make a Sinatra app which lets me ...
(1) odpowiedzi
2016-11-18 03:11 Heroku error: Magick::ImageMagickError - not authorized »
I am getting the following error when deploying and running on heroku and cant find an answer. From googling it looks like i need to update a policy.x...
(0) odpowiedzi
2016-11-17 22:11 Saving a csv file with sinatra and datamapper »
Trying to do as the title says using carrierwave but not having much luck as i get the following error: TypeError - no implicit conversion of CsvFile...
(0) odpowiedzi
2016-11-17 07:11 Handle multiple pulls in Local Git Repo »
I have Sinatra service that updates a local git repo by executing git pull when it is hit. Since it is a write, I want only one git pull to happen at ...
(1) odpowiedzi
2016-11-15 06:11 Receiving A Phone Number Input in Ruby »
The app sends a message using a REST API, but as it stands the "to" number is hard-coded into the app. I'd like that number to be a value inputted by ...
(0) odpowiedzi
2016-11-15 02:11 Overriding default credentials in AWS-SDK »
We have a web app which uses Amazon S3 throughout, and to facilitate ease of maintenance, we set up a distinct IAM User with the appropriate bucket pe...
(0) odpowiedzi