Data dodania Pytanie
2017-11-04 19:11 Bootstrap Modal with Sinatra »
I'm trying to open a modal for my create account section. I put that html part in an .erb file, but I can't link it and can't find information anywher...
(0) odpowiedzi
2017-11-04 12:11 carrierwave datamapper sinatra- no files are uploaded to the server »
I have spent more than 12 hours trying to figure out what am I doing wrong. but I can't.. So I am trying to upload a picture to the server (public) u...
(0) odpowiedzi
2017-11-04 04:11 Launching Sinatra at Terminal stays blank »
I was trying to run Sinatra and Ruby in my MacBook, and all was working fine. Then, suddenly, I tried again and it just stays like this: I can't ac...
(2) odpowiedzi
2017-11-03 13:11 Nginx -> Unicorn - Resource temporarily unavailable »
We have Sinatra application in production. The application has back-end & front-end part. Back-end & frond-end are tightly coupled and repr...
(0) odpowiedzi
2017-11-02 18:11 Password Authentication using BCrypt »
I'm trying to build a very simple login page with username and password authentication using BCrypt. There are two features, the first is to create ...
(1) odpowiedzi
2017-11-02 11:11 init.d script won't start in reboot, but works from command line »
I know this question has been asked a bajillion times, but I just can't figure this out. I've read every page I can on the topic but nothing I've trie...
(1) odpowiedzi
2017-10-31 18:10 Cannot deploy a pdf by a link from Sinatra »
I'm trying to add a PDF file to a website which uses the Sinatra framework when I add: get "/test" do return send_file File.join(File.dirname(__F...
(0) odpowiedzi
2017-10-31 17:10 Rails, using a belongs_to and has_one association to the same class »
Here's a picture I made which visually describes the relationship I'm seeking: In the picture I say Interaction, but more specifically these interac...
(2) odpowiedzi
2017-10-30 20:10 Undefined method for class in Ruby »
I'm creating a class. I'm pulling data from a hash named ROLL_CALL. The all method should return an array of Team objects. require_relative "./team_d...
(1) odpowiedzi
2017-10-30 02:10 Images in Sinatra App not found when deployed to Heroku »
This works 100% Locally but when deployed to Heroku, cannot find the image which is in the images folder in the public folder. This is a sinatra app. ...
(0) odpowiedzi
2017-10-26 20:10 sinatra behind nginx resets the session »
[Update at the bottom] The problem is that after each reload of the page, regardless of what I put in the session, session gets 'reset'. For example...
(0) odpowiedzi
2017-10-23 22:10 H12 Request timeout 503 on heroku then 200 success »
I am running a small docker image that starts a ruby Sinatra API. Th point of the API is to receive an image, preprocess it using a script then use Te...
(1) odpowiedzi
2017-10-23 18:10 Can't access Database and models with Sinatra and Rails »
I am building a login form using Sinatra for static web pages and a custom model that stores data from the database. But the page is unable to recogni...
(0) odpowiedzi
2017-10-18 03:10 Sinatra App doesnt load Imges on Heroku »
My Sinatra app loads the images fine on Localhost but not when I deploy it to Heroku. I have a Public folder and then an img folder under that where a...
(0) odpowiedzi
2017-10-15 08:10 Sending a zip file with Sinatra's attachment method not working »
I'm building an app for managing subscriptions and generating mailing lists. I'm building a feature in my app to export all the mailing lists under e...
(1) odpowiedzi
2017-10-14 22:10 Cannot get value of input field JS »
I am very new to JS and HTML, so my apologies. I have run into trouble trying to validate input into a form field with the pattern='' attribute. Altho...
(1) odpowiedzi
2017-10-14 15:10 How in Sinatra would I check that the term the user has input into a form already exists in your database? »
Making a budget app while learning to use Ruby/Sinatra/SQL. Part of it involves letting the user add new vendors that they can assign transactions to....
(1) odpowiedzi
2017-10-14 01:10 Using a config block at the top of the file throws error »
I'm trying to set a connection to the database (using Sequel) before the model appears. Well it must be that way but am getting an error undefined ...
(1) odpowiedzi
2017-10-13 21:10 Sinatra structure »
New to Sinatra, porting a Hangman game/project I made a while back to the web. Everything here seems to work besides the "counter". Inside "choice" th...
(0) odpowiedzi
2017-10-12 23:10 Sinatra {"Content-Type"=>nil} - form response »
I've tried thoroughly researching the answer to this but I haven't been able to find what I'm looking for. I'm a baby coder (still learning) and am bu...
(0) odpowiedzi
2017-10-12 20:10 Pg_search trouble with dot »
I am using pg_search to find links, but this does not work well because of. in the link. I have a model link and another company, each link belongs t...
(0) odpowiedzi
2017-10-12 18:10 Should a docker-ized Sinatra app have its source code in the container or in a mount? »
I've researched numerous posts about dockerizing Sinatra, Rails, etc., but I'm not clear on where the source code for the app should best reside: in t...
(1) odpowiedzi
2017-10-07 01:10 Need to break out a config method into its own namespace so it can have multiple configurations »
So I have a Sinatra::Base application that connects to Active Directory, and everything works perfect when there is only one Active Directory being qu...
(0) odpowiedzi
2017-10-04 22:10 Open-Uri hanging/timing out »
I am trying to use open-uri with Nokogiri class Script require 'nokogiri' require 'open-uri' open("http://www.ruby-lang.org/") {|f| f.eac...
(0) odpowiedzi
2017-10-02 23:10 Sinatra HTTP Auth: Different username/password for each subdomain »
I have implemented HTTP authorization to our Sinatra app, but now I'm trying to configure a different username/password for each subdomain of our app....
(0) odpowiedzi
2017-10-02 19:10 Custom action with kaminari-sinatra »
I want to use a custom route to paginate results using the Kaminari gem for Sinatra. However, I have not been successful in setting the parameters to ...
(0) odpowiedzi
2017-10-02 17:10 onData event for dashing not firing? »
I've made a widget called Status that mixes the status- class code from Number widgets with a Text widget. It doesn't seem like the onData event from ...
(0) odpowiedzi
2017-09-29 01:09 Details on executing Ruby code using Sinatra »
I have a Ruby script : require 'uri' require 'net/http' require 'openssl' require 'json' require 'pp' require 'opal' require 'ostruct' url = URI("M...
(1) odpowiedzi
2017-09-28 18:09 I can't access to my sinatra webapp url using docker and passenger »
I have to learn how to use docker, and how to dockerize a sinatra webapp. I've followed this tutorial : http://coding.jandavid.de/2016/01/22/dockeriz...
(0) odpowiedzi
2017-09-27 01:09 how do I define the path when running a Rake task with system command from another Rake task »
So, I have a rake task that runs as a chron task (its running on windows so this is rufus scheduler instead), this particular rake task sends data via...
(0) odpowiedzi
2017-09-25 15:09 CircleCi .yml Ruby without Rails test path in the run command »
I am trying to find the syntax to call my test file. I am not using rails/rake. Everything I am finding is using rails. That is not an option for me a...
(1) odpowiedzi
2017-09-25 02:09 Sinatra breaks driver.navigate.to in selenium »
I try to make simple Selenium script using Ruby and I use Sinatra for net interaction. Script needs to get data with POST (I make link for driver.navi...
(0) odpowiedzi
2017-09-24 15:09 How to test timestamps using capybara? »
I have a program in which a user can post a 'peep', along with it being timestamped. How can I test this using capybara? The problem is everytime a ne...
(2) odpowiedzi
2017-09-23 14:09 `<module:Types>': undefined method `/' for #<String:0x007fd44c8f5318> (NoMethodError) Datamapper »
I am receiving this error when attempting to run RSpec. I just was setting DataMapper up on my app and I have received this error. I have been trying ...
(1) odpowiedzi
2017-09-20 23:09 Setup Sinatra API with Create-React-App »
Does anyone know how to setup Sinatra routes for a React app generated using create-react-app? I've run the build command on the React app. Also, the ...
(0) odpowiedzi