Data dodania Pytanie
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
2016-11-14 20:11 NoMethodError at /lists/new undefined method `lists' for nil:NilClass »
I am getting a "NoMethodError at /lists/new undefined method `lists' for nil:NilClass" for my Ruby and Sinatra app and have not been able to figure it...
(1) odpowiedzi
2016-11-11 10:11 Mounting Sinatra app on rails 5 »
I searched the web and don't know why i am getting this errors... Im trying to mount a Sinatra app that i have to refactor into a rails app so i can ...
(1) odpowiedzi
2016-11-10 20:11 Keep page alive while running in background using threads »
My Sinatra-based ruby app works just fine locally, however, when I push it to CloudFoundry, the page times out before the app prints the results on th...
(0) odpowiedzi
2016-11-10 17:11 Sinatra + Redis and POST request with cURL »
I am learning Sinatra and Redis building a small URL Shortener. Here is my POST route: helpers do include Rack::Utils alias_method :h, :escape_htm...
(0) odpowiedzi
2016-11-10 14:11 Sinatra, Unicorn and Nginx - Proxy multiple Sinatra Apps »
I have multiple Sinatra apps on unicorn + nginx and I want to proxy the second Sinatra app to be on a /app path. root root/app Here is my nginx co...
(0) odpowiedzi
2016-11-09 16:11 How to use a regex to get a particular part of a string »
I'm creating a Sinatra-based application, and am trying to parse a long string using regex to pull out a link from it. Here's an excerpt of the str...
(2) odpowiedzi
2016-11-07 22:11 How do I get users to only view their lists with ruby and sinatra »
My ruby and sinatra app currently lets users view and edit all lists created and I haven't been able to figure out how to only show lists to the user ...
(1) odpowiedzi
2016-11-03 13:11 Using .try with ["posted-field"] rather than symbol :posted-field »
I am using Sinatra. -I am receiving webhooks from a 3rd party. -The fields sent form the webhook vary from post to post. -I am us...
(0) odpowiedzi
2016-11-03 10:11 I can not notify to honeybadger »
I tried to notify exception from Grape API in my rails application to honeybadger, but it doesn't work. # api_error_handler.rb module API module V1...
(0) odpowiedzi
2016-11-02 12:11 Get array element by key »
This is my app.rb: require 'sinatra' COMICS = [ { 'name' => 'Test #1', 'code' => 'Link №1' }, { 'name' => 'Test #2', ...
(1) odpowiedzi
2016-11-02 10:11 Undefined method for class - Sinatra »
It seems i don't quite understand initializing or using a class within another class. I have a Sinatra app and have created a class to handle fetchin...
(1) odpowiedzi
2016-11-02 10:11 Running different servers in sinatra based upon environment »
I'm using sinatra to put together an application and have been reading further into concurrency and threads. From what i can tell using something like...
(0) odpowiedzi
2016-10-31 01:10 Is there a simple way to have persistent form data in SInatra? Or does it require I write form variables to a file and read them manually? »
I have a form in Sinatra with 4 text fields. When the page is closed and then reopened I would like to fill the text fields with the values that were ...
(1) odpowiedzi
2016-10-30 00:10 Rails 5: Rack app mounted in routes.rb bypasses Rails middleware? »
I have a few Rack apps mounted within my routes.rb like so: mount ImageVise, at: '/ivise' mount ShaderApiV0, at: '/api/v0' I am currently migrating...
(1) odpowiedzi
2016-10-28 20:10 Please make sure your Heroku API Key is configured correctly in the deployment configuration »
I am trying to get loader.io to work with codeship for my heroku app. This is the error that I am receiving: heroku-cli: Installing CLI... 22.45MB/2...
(1) odpowiedzi
2016-10-27 23:10 Remove Rack stack log on rackup »
I'm running a Sinatra App and added some custom rack middleware before it. My problem is, when I start my application the rackup command prints all t...
(1) odpowiedzi
2016-10-27 22:10 Can I deploy a Sinatra app to shared hosting server? »
I recently got a shared server slot over at A Small Orange and I spent a whole day failing to deploy my Sinatra app. A few of the problems I've run in...
(0) odpowiedzi
2016-10-26 14:10 How to pull only the desired element with xml? (Nokogiri) »
Is it possible to pull only the data code="article" from the block? <param name="Артикул" code="article">LS_745094</param> <par...
(2) odpowiedzi
2016-10-24 19:10 Passing value from a dropdown box in sinatra & ruby »
It looks like for whatever reason sinatra will not recognize the "code" I use is my get "/library" do I tried putting it into a string but to no avail...
(1) odpowiedzi
2016-10-22 03:10 How to iterate over rows and print out CSV::Table values in Sinatra »
I'm making a simple Sinatra app and have the following 'numbers.csv' file: Name,Title,Phone Ally Smith,Manager,888-552-444 Rick Jones,Director,888-55...
(1) odpowiedzi