Rails Ruby on Rails Forum
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)...
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...
Simon Cooper replied
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 nee...
Ole K 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 instruc...
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
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
How is it done to pass default values in the controller?
4
Rails
Some values by default and others by strong parameters from the views
Nicolás Bobb replied
Solved
Rails exceptions from reserved keywords
0
Rails
I keep bumping into exception errors that I believe are due to conflicts from reserved keywords.
For example, I have a permit model with the attribute "gross_value." When my view tries t...
Simon Fisher posted
Whitelist parameters from a HTML table (Dynamic) and Save to JSONB format.
0
Rails
Hello,
Myself Mukheem. I have just started working with Ruby on Rails.
I am trying to create a small billing application where a receptionist can bill the items and give the receipt to customer....
Abdul Mukheem Shaik posted