
Action Mailbox Routes
2
Rails
I'm adding action mailbox to my Rails + React app, the problem I'm having is that the mounted routes are at the very bottom of the routes file so it will not get called due to the fact that I need ...
Stephen Sizer replied
Solved

Rails 6, Devise not allowing editing of user without password
2
Gems / Libraries
I've followed the instructions on the [devise wiki](https://github.com/plataformatec/devise/wiki/How-To:-Allow-users-to-edit-their-account-without-providing-a-password/). I'd like a user to be able...
Matt Bjornson replied
Solved

I am looking to find a way to work through a modern image upload work flow with active storage
1
General
Things I am attempting to achive,
1. Attach File with a js libary such as Dropzone.js
2. Vaildate file size and type
3. Crop image using libray such as Cropper.js to achive correct image aspect ra...
Carl Tanner replied

What is wrong in my script?
1
Rails
Hi dear community,
I created a survey app which has questions and answers as radio buttons. So firstly i asked on [stackoverflow](https://stackoverflow.com/questions/53241227/rails-survey-response-...
Chris Oliver replied

Need some help with an Active Record Query
6
Rails
HiI have these tables:Users which has many:Farms which has many:StoresI want to return stores that belong to a specific user_id.Got this far but Rails is giving me an error.Thanks in advance for an...
Simon P replied
Solved

SQL for search
2
General
Hi Chris,I had a question, solved it, now I'm looking for your feedback. For readability I use `a` in the example below:a = params[:query]
Item.where("name ILIKE ? OR tagline ILIKE ? OR details ILI...
Joe Guerra replied
Solved

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

Having different rails and gems versions installed on dev environment ?
3
Rails
Hi all,
I'd like some clarification from someone who's more expert than me, if possible.
I'm currently having RVM and Rails *4.2.6* installed on my development environment in which I have built ...
Chris Oliver replied
Solved

Nginx.conf failed
7
Servers
I followed line by line in [this tutorial](https://gorails.com/deploy/ubuntu/14.04)to setup my own production server.
After Nginx is installed and up and running, I followed the instruction to mod...
Chris Oliver replied

How can I validate from a gem that doesn't have the proper validation calls in the model?
1
Rails
Hello Folks,
I want to do validation for my mail functionality on my web page. I want to require that a recipient has been entered as well as a subject and body when a new mail is written.
The pr...
wyn replied

Digital Oceans Spaces set up to test in Development
3
General
Trying to set up digital ocean spaces in my development environment in order to test it out and make sure all the settings are correct before i push to production. But getting a Access blocked by ...
Urban Luis replied

Display Cloudinary image uploads
1
Gems / Libraries
Hello,
I've been trying to solve a problem I've got when trying to display images from Cloudinary. I setup everyhting accounding to the guide they provide and basically I need to upload images fro...
RyanJeff replied

production.log is nowhere to be found on Digital Ocean
1
Servers
Hey everyone, so I deployed my app onto Digital Ocean according to the Gorails guide and I managed to get it working. My is able to connect to DO's managed database, and serve content normally.
I ...
Thuba Mamba replied

Video Streaming with Rails
0
General
Hi,
I've been trying to find an efficient way to stream videos from Rails. I have about 10-20 videos that I would like to stream to an android application. I currently have a minimal application wr...
Hari Govind posted

Redirect show to edit mode always
0
Rails
Hi, I want to work always in edit mode and not in show mode. So when i go to show a object, I want to be in edit mode.
How I can make this possibile? First I think that I can put a redirect in show...
AlessioVaralta posted

How do I run / install ROR with an outdated OS system?
0
Ruby
I'm new to programming/development. I have an old Macbook Air. It's El Capitan OS X - 10.11.6.
I can't download the latest OS due to the age of my mac. I can't download the latest xcode due to the...
jrd656 posted

How to display multiple models in the same infinite scroll
2
General
So I have a Post model and a Category model and a User model.
So a user can have many posts and a post can have many categories. So returning a group of posts is very easy, however a post can hav...
Aaron Mills replied

How do I hide fields based on option selected in dropdown
0
Javascript
I have a standard rails form with 2 fields:
1. Metric type (number, percent, boolean)
2. current metric value
If the metric type is boolean, I want to hide the input for metric value
Is there a ...

What's a good way for upgrading a server?
4
Servers
I have an internal application that is running fine now, but I need to upgrade the version of Ubuntu Server on it. I have put this off wayyyy too long. Essentially I have a "VMWare box" on the co...
Chris Oliver replied
Solved

How do I Update a child object, while Creating a Parent object with Fields_for
0
Rails
I currently am creating an object with jQuery file upload, and than inserting a fields_for into the form with the new object.
However, I am unable to update the existing object while creating the...
Logan Houston posted