Ruby on Rails Community Forum

RAILS SIDEKIQ SCHEDULER

1
Rails
I would like to launch the worker after an action and this worker must be launch automatically after every 5 seconds to check a status and when the status is checked, it must be stops. How can I do...
Chris Oliver replied

Setup Ubuntu 14.04 Trusty Tahr Discussion

0
General
Hi Chris, can you help out with my ActionCable deployment issue here: https://gorails.com/forum/websockets-with-rails-passenger-error-during-websocket-handshake-unexpected-response-code-400 Apprec...
Rizal Yusoff posted

Ruby on Rails save on model has_many to has_many doesn't trigger on build

0
Rails
We have this model called "Cliente" (cliente.rb): ``` class Cliente < ApplicationRecord has_many :clientes_hardwares has_many :clientes_notificaciones has_many :sucursales has_...
Ulises Carreón posted

Error when running in Test Env

2
Rails
Hi peeps, I setup linux virtual machine in Azure, I was following this guide https://gorails.com/deploy/ubuntu/14.04 I want my VM as my test environment, however when I run 'cap test deploy' this...
geekdie replied

Nested Model of an already nested model

0
Rails
I want to make sure my thinking is right more than anything else on this post. Hopefully I can explain myself clearly and get pointed in a good direction. **My Scenario** I have 3 models. Model A...
RJ McCollam posted

Align Images with Text

1
Ruby
Hi I'm doing a report with ruby ​​prawn, the code below shows two images on video, the fact is that the two images are not aligned, so the image c is displayed much lower, my question is how do I a...
Marcus S replied

Capistrano deployment is not happenning after Server IP Change

0
Rails
Problem: Recently We have changed IP address of the stage server. We are using Capistrano for deploying rails application. So after changing server IP address when we run a command: cap develop(bra...
Rutul Shah posted

SEEKING FREELANCER, Colorado Springs, remote: true

2
Rails
I have a Rails app I built with 5.2. It's intended to be similar to Soundcloud in some ways, Spotify in others. I am using Carrierwave to upload audio files to Amazon S3. One of the things I would ...
Marcus S replied

Stripe Signed Webhooks Discussion

1
General
Hi Chris, I am trying to test (with rspec) a webhook url with a particular event.type in stripe - "charge.dispute.created". I've simulated it on the stripe dashboard test site and the webhook work...
Pam Willenz replied

How to validate a form without a page refresh ?

0
Rails
We commonly do validation via client side validation in rails. But how to make the validation using ajax that is validates the form without page refresh
NarenPushparaju posted

How do I work with nested forms? Rails 5, Simple form

0
Rails
Link to Stackoverflow question: https://stackoverflow.com/questions/51942719/unable-to-render-double-nested-form
Cepheaus Chee posted

How do I handle rails flash message with Vue.js submit method?

0
Javascript
Hi there! I watched this video about nested forms with Vue.js. https://gorails.com/episodes/using-vuejs-for-nested-forms-part-2?autoplay=1 How do I handle rails flash messages after Vue.js submit...
Pedro Costa posted

Stripe integration on Ruby On Rails

5
Rails
Hi Thank you for your great course: i am coding with : https://www.lynda.com/Stripe-API-tutorials/Adding-Stripe-Payments-your-Ruby-Rails-Application/540343-2.html then i got an error as follows:...
Daniel Morales replied

How do I handle this race condition?

4
Rails
I'm using Uploadcare to allow my users to upload files. When the upload completes, Uploadcare returns a file UUID to my page which I use to create an `Upload` record in my DB with a remote AJAX cal...
Daniel Weaver replied

Affiliate & Referrals Programs with Stripe & Rewardful Discussion

7
General
I was going to ask You about this! Good video. Still have a few questions: 1) Rewardful says something like "connect your Stripe account and we manage everything". That sounds like they get too muc...
Ghar replied

Update a Rails record via API

0
Rails
Hi! I just finished watching Chris' API video and it was awesome! I am able to make GET requests to retrieve data in JSON format. However, I was wondering how could I update the record with a PATCH...
Sillico posted

How fix this error

0
Rails
mina deploy -----> Creating a temporary build path -----> Loading rbenv -----> Loading rbenv -----> Fetching new git commits -----> Using git branch 'develop' Cloning into '.'... don...
Орест posted

Add View Option to view csv

0
Rails
I have added a button to download the CSV for the parent model. What I want is when a user clicks on Download CSV, user should be asked whether to DOWNLOAD or just VIEW the csv. How can I achieve t...
Navroop Singh Sidhu posted

Why is a GET verb being used?

1
Rails
I have the following error occurring after selecting a link. ActionController::RoutingError (No route matches [GET] "/admins/delete_user"): But the link is constructed as follows: <%= li...
Brent Phillips replied

API low-level caching

2
Ruby
Hey Chris, I am a bit confused regarding API caching. I am using JSONAPI spec and fast_jsonapi gem and trying to cache the vehicle itself on show action and if there are params coming over like `i...
Alexey replied

Learning Ruby on Rails? Join our newsletter.

We won't send you spam. Unsubscribe at any time.