Ruby on Rails Community Forum
Logic on nested forms/related tables
2
Databases
I'm trying to improve my modles for an existing scenario, but I just can't get my head around it. The situation is that I want to list a range of coffee's and include the country and region of the...
Simon Cooper replied
How do I fix a route -- trying to do an Edit/Update
0
Rails
I'm getting the following error when editing and then updating a blog post:
*From Chrome Browser*
"No route matches [PATCH] "/authors/posts"
***From Rails Server (command line)***
ActionControlle...
Royal Summers posted
How to Setup Multiple User Models using one login with Devise.
1
Rails
Hi Chris
I joined GoRails just recently and am excited to learn more about Rails.
I have an app that has 3 different users ( vendor, couple and admin) and each user has their own Dashboard and au...
Alan Reid replied
Have filed entry populate fields in two tables - Nested Forms?
2
Rails
I have two models, Gins and Distillery. At the moment, these are two completely seperate models, but I have been thinking that as a user adds a a new Gin and inputs it's distillery, this could als...
Simon Cooper replied
Issue with Capybara file uploads testing
0
Testing
Hello!
I have issue with uploading files by Capybara Rspec Selenium.
Here is more details about it: https://stackoverflow.com/questions/48499129/capybara-upload-images-issue
Please help!
Anton Storchak posted
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
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
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