Save 36% for Black Friday! Learn more

Ruby on Rails Community Forum

Multi tenant - will it help?

0
Databases
Here is the case , I got users and a few other models , most of them end up doing some action with one main table that contains around 15M rows. I have an indexed foreign key between the main tabl...
Ohad Dahan posted

How would you implement API calls towards a payment solution

0
Rails
Hi! So far I've been using Stripe and Paypal + Rails gems to make payments for my apps. These days, I am considering changing to a new vendor, with better prices and services fitted for my need. S...
Ole K posted

Render a Rails resource with a React Component

1
Javascript
I'm going round in circles trying to work out, what I think must be a fairly common scenario, of tyring to render a rails resource through a React front end component. I'm seem to have got as far ...
Ορέστης Καπλάνης replied

Single page apps

0
Javascript
Hello, I was trying to learn how to build a single page app with RoR as backend and a javascript framework as frontend. Are there any episodes that I can refer to, here on Go Rails? Thanks !
Culverhouse posted

How do I access a USB device via a Ruby on Rails web app

0
Rails
I have a Ruby on Rails web app via which I want to access my smart card reader connected to my PC via a USB. The idea is to press a button in the web app to initiate read action in the card reader...
adi posted

Building a Trello Clone with VueJS and Rails

1
Rails
In Part 2 of this series, to add a card to a list, we use the Rails.ajax method. I get an error `Uncaught ReferenceError: Rails is not defined at VueComponent.submitMessages` in vue.app. How do I g...
Matthias Orgler replied

How to make a user like a post without the need of authentication?!

3
Rails
Hi, I have a side project where I don't want visitors to make accounts because it is just a collection of posts but I want them to be able to like posts.
Muhammad replied

Pass variable from Controller to Serializer in Rails

0
Rails
I have this code in my Controller to get distance in meters from one location to another location: ``` range = Geocoder::Calculations.distance_between([lat,lng],[Model.location.lat,Model.location....
Rony Fhebrian posted

How to create a Rails Web application which consume its data from an API using JSON API Specification

4
Rails
Hi, good afternoon. Chris, I ahve noticed that there are companies asking for consuming an API using JSON API Specification where I should consume its data and create a front-end with Rails to sho...
Kelvin Firmino replied

Modern Webpack template on Rails 5.1

1
Rails
I have downloaded this [Adminator template](https://github.com/puikinsh/Adminator-admin-dashboard), which is modern npm/yarn Webpack theme. As stated in the template's homepage, install instruction...
Chris Oliver replied

How can I setup Vim for rails development on Ubuntu?!

5
General
Hey guys, Lately I have been trying to switch to Vim but I couldn't because It's kinda complicated. Most of the dotfiles I found were built to setup on a Mac so I'm curious if anyone here is workin...
Chris Oliver replied
Solved

Learn what is Redis and how to use it with Rails

3
Rails
Hi, I have seeing a lot company asking for using this Redis as cache with Rails. I suppose it would be good learn about it.
Chris Oliver replied

has_many through association with collection_check_boxes question not working at create action (kinda)

0
Rails
Testing has_many through association, I want to do that Product has many Category, and Product has many Certificate. Both associations are two-way, and the setups of them, as below, are pretty muc...
DC posted

How do I install ruby on rails / RVM on SUSE Enterprise

1
Rails
We are trying to install the single user RVM of ruby on rails on a SUSE enterprise machine. Unfortunately we are encountering problems. According to https://rvm.io/rvm/install we prepared a single...
Kelvin Firmino replied

Webpacker requires Node.js >= 6.0.0 and you are using 0.10.30

3
General
I've got into bit of a mess. Posted this over on SO too, but no answers of use over there. I've added Webpacked so I can install React.js. However, I think I've somehow buggered up my PATH and ba...
Simon Cooper replied
Solved

How to deploy rails on IIS or on Xammp with Apache?

0
Rails
I have **Windows Server R2 2012**, I need to deploy rails app on it. I want to run rails app on either IIS or on Xammp with apache. I tried many solutions posted on the internet but none of them wo...
Mahmoud Sayed posted

Multitenancy with custom domain names

0
Rails
We have a multitenant application with custom subdomains using a wildcard SSL on Heroku. While this has been great for our clients they are now requesting the ability to add their own domain names....
Brent C posted

Okay I subscribed to learn Rails.. but where do I start?

4
General
Okay, I might be coming off like a total noob (and I am one by all means when it comes to Rails) but I really need some clarity on how to get strated with learning Rails from the Episodes available...
Chris Oliver replied
Solved

accepts_nested_attributes_for and :reject_if

0
Rails
Hello everybody! I have problem with nested attributes:. My model: ``` class MainTransactionElement < ApplicationRecord has_one :external_source accepts_nested_attributes_for :external_sourc...
Bartosz Michalak posted

Logger.debug to output command line results

2
Rails
I have an application where we have multiple domains mapped to same server and we need to create letsencrypt certificate for each of these domains. Along with this we need to create nginx files to ...
Anand Padia replied

Learning Ruby on Rails? Join our newsletter.

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