Data dodania Pytanie
2017-07-16 07:07 set environment variable in ruby and pass it to shell »
I am running a sinatra web app that gets a file (upload) from the user. It then transfers the file to a server via scp. Can I grab the filename from t...
(1) odpowiedzi
2017-07-14 06:07 Role-based authentication / permissions in Sinatra »
I am writing a web application in Ruby, using Sinatra. The application will have a number of restricted routes that users will not be permitted to acc...
(0) odpowiedzi
2017-07-12 23:07 What is the recommended way to handle large file uploads to s3? »
I'm using AWS SDK for Ruby to upload large files from users to s3. Bare with me, this is not a Ruby question, so anyone using s3 can answer. The serv...
(1) odpowiedzi
2017-07-12 15:07 oauth issue with basecamp »
I'm getting the following error: --- :error: 'Unsupported type: nil. We support user_agent and web_server.' when I try to redirect using this ur...
(1) odpowiedzi
2017-07-12 07:07 PG::ConnectionBad: PQsocket() can't get socket descriptor - Sinatra »
Everytime I encounter this error, I manually go and restart the connection. How can I have Sinatra automatically reconnect to Postgre database after a...
(0) odpowiedzi
2017-07-11 20:07 Ruby: NameError at '/signup' uninitialized constant User »
I'm new to Ruby and working on creating a form that creates a new user when submitted. I have created my database (rake: 12.0.0) and am able to edit i...
(1) odpowiedzi
2017-07-10 20:07 Sequel::AdapterNotFound: LoadError: cannot load such file -- mysql »
When I am trying to migrate files using command prompt: sequel -m db/migrations/ mysql://root:root@localhost/todo I get the following error: Erro...
(0) odpowiedzi
2017-07-10 19:07 Odd behavior with Ruby bundler dependencies »
I am trying to write a simple HTTP API wrapper over calabash-android using sinatra, but I'm running into some issues. I get NoMethodFound errors any...
(0) odpowiedzi
2017-07-10 00:07 Can't send/receive post data to API Server Anugularjs »
Could someone please try to assist me ? This has been racking my brain for quite sometime and I've googled and searched Stack for solutions but was un...
(1) odpowiedzi
2017-07-09 11:07 change name of HTML <select> form Attribute in a for loop »
In my code I create duplicate copies of a fieldset based on user input using the code in the snippet. My issue right now is that when the user submits...
(1) odpowiedzi
2017-07-06 14:07 How to push data into widget using dashing dashboard »
I want to push numeric data from a file to my dashboard. I am using the following .rb file as job for pushing the data SCHEDULER.every '30s' do var ...
(1) odpowiedzi
2017-07-06 06:07 Superclass Sinatra::Response »
In Sinatra I'd like to use a custom class for the response object. My custom class would superclass Sinatra::Response. However, I can't find where Sin...
(0) odpowiedzi
2017-07-06 03:07 How to push to AWS EC2 Service Container from a specific git branch (ie 'staging') »
I'm completely new to AWS, EC2, and the Service Container, but I did manage to successfully push my sinatra application with docker fairly easily foll...
(1) odpowiedzi
2017-07-05 15:07 Can't access local Sinatra server (win10 + Ubuntu on Windows)? »
I can't seem to access Sinatra's local server. I have a win10 machine and I have my servers running in an Ubuntu on Windows. Sinatra has been installe...
(1) odpowiedzi
2017-07-03 04:07 Twilio API Outbound Call Error: 11200 »
I am building a simple reminder application that is using the Twilio APIs to send reminders via phone calls. I was following the tutorials and hit a d...
(0) odpowiedzi
2017-07-02 09:07 sql add user input to existing value »
I'm using a psql database and the rest is Ruby using Sinatra. I've got my controllers, my models, my views, etc. I'm doing a little inventory app and...
(1) odpowiedzi
2017-07-02 02:07 Exception Load Errors, for files that exist (even in multiple places?) »
I am finding these errors (via debug) and don't understand why I'm getting them. I'm not sure if I have duplicate files for a reason either. I'm us...
(1) odpowiedzi
2017-07-01 22:07 Check if Active Record table has changed »
In Active Record I can write name_changed? to check if the column name has changed. How do I check if a table has changed? (i.e new records added) ...
(2) odpowiedzi
2017-07-01 12:07 Sinatra doesn't want to say hello »
What could possibly be wrong? I run this file: require 'sinatra' get '/' do "Just Do It" end Server starts up: == Sinatra (v2.0.0) has taken ...
(0) odpowiedzi
2017-06-30 10:06 How to embed an erb.html file within another erb.html file in ruby on rails »
In sinatra I used to just write <% erb :header %> So how do I do something like that in Rails? ...
(0) odpowiedzi
2017-06-30 05:06 undefined method 'id' for nil:NilClass -- edit route won't work »
I'm not really sure why I'm getting the error. Every other route works except for this one. I have also attached the code for my controllers and ...
(2) odpowiedzi
2017-06-29 22:06 Routing And Creating Multiple Pages In Ruby Shoes »
is it possible to create an app in Ruby Shoes (GUI Toolkit) where you can have routing or pages like html? For example, I have a main menu page and wh...
(0) odpowiedzi
2017-06-29 17:06 returning confirmation from paypal api sinatra »
We are creating a paypal express checkout for a business using sinatra. I need to be able to get something returned form the API giving me confirmatio...
(0) odpowiedzi
2017-06-28 20:06 SQL Statement to update multiple columns with multiple where conditions »
So I have the following SQL statement: db.exec("UPDATE products SET product_description = '#{fj_description}' AND personalization = '#{fj_person...
(1) odpowiedzi
2017-06-27 15:06 How to custom layout directory in sinatra »
I have a Sinatra app with multiple layouts, one for admin panel, and one for public. I want to isolate them into their own subdirectory in views: vie...
(1) odpowiedzi
2017-06-27 02:06 Sinatra doesn’t know this ditty »
Would anyone check if I have done something wrong? My app.rb: require 'sinatra/base' require 'sinatra/flash' require './lib/hangperson_game.rb' cla...
(1) odpowiedzi
2017-06-26 16:06 How to test activerecord models outside of rails? »
I have a simple todo sinatra app and want to test activerecord models. Here is the test code ENV['RACK_ENV'] = 'test' require 'test/unit' require 'r...
(0) odpowiedzi
2017-06-26 11:06 Call bash script on button click in a Ruby/Smashing web app »
I was asked to contribute to a simple web app built using Smashing (a Sinatra-based framework). I have a little experience with rails, but I am not fa...
(1) odpowiedzi
2017-06-25 06:06 Datadog APM traces with rack middleware and Sinatra »
I'm using the Rack builder as middleware for my Sinatra application. i'm trying to setup Datadog APM traces for monitoring the Application performance...
(0) odpowiedzi
2017-06-24 13:06 NameError - undefined local variable or method `user_details' for #<Sinatra::Application:0x0000000381bde0>: »
I have a basic Sinatra app when posting form details. I'm getting this error, especially when running on Heroku NameError - undefined local variab...
(1) odpowiedzi
2017-06-23 05:06 Checking if a record exists in Sinatra/DataMapper »
I currently generate a user's profile page using their serial ID, like so: get '/users/:id' do @user = User.get(params[:id]) end This works grea...
(1) odpowiedzi
2017-06-21 20:06 Ruby Sinatra Sessions Across Windows »
I have a quick question about using sessions across different windows. I'm currently trying to create a login screen for a web app that I'm creating a...
(1) odpowiedzi
2017-06-21 17:06 How safe is it to use an ip for running a Sinatra ruby app for an iOS application »
I am building an iOS app and I have an AWS ec2 instance running a Sinatra app for refreshing and swapping a Spotify SDK access token and I am wonderin...
(1) odpowiedzi
2017-06-19 20:06 Ruby Sinatra Sessions in a JSX file? »
I'm a newbie to integrating react + ruby and was wondering if there is a way to access my sessions contents that I stored? For example, in my app.rb,...
(1) odpowiedzi
2017-06-19 09:06 Can I do something like this in sinatra app? config files based on request »
for the following code i'm getting config_file method is not available for the request. How can I do something like setting config file for entire app...
(0) odpowiedzi