Data dodania Pytanie
2017-08-29 00:08 Migrations: What is actually moving from point A to point B in migrations? »
In Active Record, when we deal with migrations, what exactly is moving? When I think of migrations, I think of something moving from point A to point ...
(1) odpowiedzi
2017-08-27 06:08 Cannot start Rack server because of NoMethodError »
I'm writing a tiny Sinatra application (Facebook Messenger bot), so I'm using facebook-messenger gem. Here's what I've got in my config.ru: require '...
(1) odpowiedzi
2017-08-26 13:08 Nginx doesn't work with Sinatra JSON route »
I've setup a Ubuntu 16.04 server with Nginx 1.12.1 and installed and configured Phusion Passenger 5.1.8 (Open Source) to work correctly. I've tested ...
(1) odpowiedzi
2017-08-25 13:08 How do I pass script name to layout from separate haml file »
This is what I'm currently using: haml :login_signup, :layout => :'main' From the login_signup haml file, I would like to pass the name of the J...
(1) odpowiedzi
2017-08-24 21:08 Sinatra Errno::ENOENT - cannot find file »
While trying to run this app with sinatra it throws an error, saying it cannot find a json file. When I test the methods outside sinatra, they work f...
(1) odpowiedzi
2017-08-24 16:08 How do I import different JS files into layout for different haml views »
Typically, I'd include those in each haml file, but because the main layout includes jquery, all new js files have to appear AFTER the jquery src. How...
(2) odpowiedzi
2017-08-24 13:08 Remember me functionality with Warden and Sinatra »
I'm trying to implement a remember me functionality in my ruby based application, it is the first time I'm doing such a function. I'm using Sinatra Fr...
(0) odpowiedzi
2017-08-23 16:08 Detect multiple conditions »
I'm trying to create a simple wine web app with Sinatra. The keys within my Wine model are "vintner", "vintage", and "varietal". Vintage is an intege...
(1) odpowiedzi
2017-08-23 09:08 Send DELETE request to an API endpoint using Sinatra »
I want to send a DELETE request to an external API endpoint in a controller of my Sinatra application using nestful gem. I want to delete an event by ...
(1) odpowiedzi
2017-08-21 16:08 display dynamically genereated content on one side of screen »
Trying to have a side menu that has a list of dynamically generated links that when click populate the other side of the screen. Right, now I am able ...
(0) odpowiedzi
2017-08-21 15:08 Sinatra namespace not working »
I have a Sinatra app where I want to use namespace to make it more clean. I've installed the sinatra-contrib gem and added require 'sinatra/namespace'...
(0) odpowiedzi
2017-08-20 20:08 Heroku isn't updating my CSS and JS »
First thing I should mention is that I'm NOT using Rails. I don't have a rake assets:precompile task (tried it anyway, didn't work). I don't have a pu...
(1) odpowiedzi
2017-08-20 10:08 Public Directory Not Being Served With Sinatra »
As the title says, I cannot get Heroku to use my public assets. Locally, when running my app with shotgun it works. But with rackup (what Heroku uses...
(1) odpowiedzi
2017-08-20 02:08 Ruby send Json response to http post call »
I currently have Ruby code that takes a http post from the client. It makes another http post, and I want to send a json response based on the respon...
(1) odpowiedzi
2017-08-18 08:08 How do I pass values from a ruby back-end to a jquery confirmation dialog? »
I'm building a web application with a Ruby back-end (Mostly Sinatra, Not Rails). The application is to manage Institutions, People and their subscript...
(1) odpowiedzi
2017-08-18 03:08 Use Ruby Sinatra erb template to access jQuery Mobile (jqm) multipage html »
I have a standard jQuery-Mobile multipage HTML file that I need to access from my Sinatra application with the ERB templates. I don't see how to acce...
(1) odpowiedzi
2017-08-15 17:08 Multiple lists in a Dashing widget »
I've cloned the Dashing List widget and edited it so it'll contain three separate lists, like in this image. The job associated with the widget makes ...
(1) odpowiedzi
2017-08-10 06:08 Ruby Http gem (http client) inside Sinatra POST »
I am trying to relay a GET request so when the user does a POST request to the server then the server does another GET request to some other URL and r...
(1) odpowiedzi
2017-08-10 04:08 Do the .rb files in your db >>migrate have to be the same name as the rb files in your model folder? »
I am fresh into Sinatra and Activerecord and I noticed I get a lot of errors such as LoadError: cannot load such file -- ./model/character_houses ...
(1) odpowiedzi
2017-08-09 19:08 Sinatra::Warden undefined method `authenticated?' for nil:NilClass »
I'm trying to use authentication for my Sinatra web application with Sinatra_warden module, but when I point to an authorized site, it says: NoMethod...
(1) odpowiedzi
2017-08-09 19:08 JSON to HTML in ruby »
I have some data that is being displayed in JSON format as shown below. I want to convert this JSON data into HTML table/format. Can someone tell me w...
(0) odpowiedzi
2017-08-07 17:08 How to change layout content the same throughout all erb files »
I am new to using sinatra I have in my layout erb file a navbar that stays consistent through all my pages using yield At the same time I have this h...
(1) odpowiedzi
2017-08-06 04:08 Unicorn+Sinatra+Nginx | FATAL error adding listener »
I have a Sinatra application hosted using Nginx and Unicorn. it went down when I upgraded the operating system (Ubuntu 14.04.5 LTS) on the server, and...
(2) odpowiedzi
2017-08-04 16:08 Install chromedriver using a remote host »
I deployed my application using Ruby, Sinatra and Redis DataBase, on my ubuntu remote host named Scaleway. In this way, i've install all what i need,...
(1) odpowiedzi
2017-08-04 13:08 Why using POST method in a form returns Error 404? »
I am completely newbie in ruby, so I made a form with POST http method, but it fails as follows: ruby sinatra_msg.rb [2017-08-04 07:47:50] INFO WE...
(1) odpowiedzi
2017-08-02 19:08 Ruby rest Sinatra server with Perl Client »
My Ruby server require 'sinatra' set :port, 8080 get '/get' do "GET Hello World" end post '/post' do "POST Hello World" end Ruby Client - Work...
(0) odpowiedzi
2017-08-02 11:08 How to deploy a Ruby app on Heroku using Sinatra and Watir gem »
Hi i've some trouble to deploy my Ruby application on Heroku using Sinatra and Watir gem. I have to load a chrome window, that's why i read the messag...
(1) odpowiedzi
2017-07-31 17:07 Ruby version and project not matching »
When I run, bundle I see the following: Your Ruby version is 2.5.0, but your Gemfile specified 2.4.0.pre.dev my Gemfile looks like: source 'https:...
(2) odpowiedzi
2017-07-31 15:07 Dynamic array of hashes in Sinatra »
I have an array of hashes that I want to dynamically change the content on the page with. How do I show all the names of the hashes and when clicked, ...
(0) odpowiedzi
2017-07-25 06:07 How do you deploy a sintra app on heroku »
How do you deploy a sinatra ruby application to heroku without having a database. ...
(0) odpowiedzi
2017-07-23 06:07 Generating *.mobi ebook on sinatra rack webrick server in daemon mode doesn't see images »
I have a sinatra app (Github) for generating ebooks in format *.mobi using kindlegen program from amazon (I am using this gem). I start server with: ...
(0) odpowiedzi
2017-07-21 21:07 Stripe Sinatra Subscription »
I'm am able to create customers using Stripe/Sinatra, I have created some plans for subscription. How to I change the customer and add them to the sub...
(1) odpowiedzi
2017-07-20 09:07 Build a Sinatra server that displays the current job postings when I visit that server’s root path »
I currently have a scraper file called scraper.rb. I need to figure out how to take the output from this and have it display on a Sinatra server. If y...
(1) odpowiedzi
2017-07-19 18:07 How to pass config file to Puma & Sinatra? »
I have a Sinatra app that's deployed to Heroku. I want to configure Puma via a puma.rb config file to have multiple workers, but both examples from t...
(2) odpowiedzi
2017-07-19 14:07 uninitialized constant Timeout::Error at Heroku »
This is what I see in my Heroku logs: heroku[web.1]: Starting process with command `bundle exec rackup config.ru -p 44765` app[web.1]: bundler: faile...
(1) odpowiedzi