
Nested Parameters returns ActionController::Parameters rather than parameter value
5
Rails
Hello,
With the payload:
{
"ref": "The penguin ref",
"object":{
"a": 300,
"b": 30000,
"c": 10022
}
}
params.require(:stuff).permit(:ref, object: [:a, :b, :c]...
Chris Oliver replied
Solved

How do i get the distance between each driver and pickup point (driver are user of thy 'driver') using the here maps api, rails app
0
Rails
With some code
elie kazad posted

Date Picker for Rails App
1
Rails
HiWhat would be the recommended data picker for my Rails app?Seem to be a lot of options but many haven't been maintained in a while.Thanks
Abhinay kumar replied

How do I create a delete button for images uploaded with Active Storage
2
Rails
I am creating a user interface for users to upload images and delete ones they've already uploaded. It is using Rails 5.2 Active Storage and Amazon S3.
The issue I am experiencing is similar to t...
Dmitriy replied
Solved

How do you save draft records with ActionText?
0
Rails
I saw Chris's episodes on autosaving draft records with draftsman, but the gem is a bit outdated now. It hasn't been updated in over 2 years and the highest supported version is rails 5.2. Has anyo...
raguila8 posted

How to create a button with a file upload action
1
Rails
I've got a form where the user is allowed to import a spreadsheet. Currently the part for the user to select the file looks like:
<%= form_tag import_clearance_crews_path(@clearance), multi...
Chris Oliver replied

Question about twitter clone
1
Rails
Hello. I’ve been seeing a few tutorials on twitter clones and I was thinking of trying one. With my idea, instead of following people, I would like it so users can follow hashtags. Is that even pos...
Chris Oliver replied
Solved

Gem for making user groups
2
Rails
I was wondering if there is a gem for making user groups in my project. Or do I have to learn the hard way how to make user groups.
Btw I’m a hobbiest not wanting to make a living. Just want to ma...
Chris Oliver replied
Solved

How can i change STRIPE2 description on the charge from a paiment?
0
Rails
When you use the stripe api to make online payments, I receive a charge in my app from my bank with the description of STRIPE2, is there any way to change this description for something personalize...
Jose Estrada posted

I need help to get delete of attachments to work from view with ActiveStorage
0
Rails
Hello, I am on Rails 5.2.3.
I just followed the rails guide on ActiveStorage, and have the attachments working. from a display, download link POV.
What I do not seem to get functioning is the delet...
jl@lejoly.com posted

Reload or refresh issues!?
0
Rails
Created an app with rails 6 & ruby 2.6.6
Issues
1:::: I edit files expect to refresh my browser & see changes... no changes noticed! I have to restart server to see any change? Is there not...
John q kiewum posted

Polymorphic association via concern giving undefined method relation_delegate_class
0
Rails
Not sure if the forum is a good place to ask technical questions like this, but I have a heartable concern that I will be applying to several models:
module Heartable
extend ActiveSupp...
Tom Iwaniec posted

Deploy Action Cable & Redis to production
0
Rails
I'm currently integrating Stimulus Reflex and Cable Ready in my application and want to deploy it to my production server. The guide here on how to deploy ActionCable to production seems very outda...
Maximilian Kirsch posted

CRUD on attribute in N/N join table
3
Rails
Hi!
I am struggling with a many to many relation to access an attribute stored in the join table.
I basically have two models :
- "User" which has_or_belongs_to_many :items
- "Item" which has_or...
Chris Oliver replied
Solved

Best Practices for storing API Keys, DB user / passwords, etc...
1
Rails
I would like to get everyone's take on what are is the best practice for storing DB usernames/passwords, API keys, Contstants, Etc... Should they be stored in config/environments/ then in test, dev...
Chris Oliver replied
Solved

How do I keep sendgrid for emails coming from me, and use another way for a contact form? (verified user identity issue!)
0
Rails
I configured my rails 5.2 app to send email confirmation and others using devise and Sendgrid. It works perfectly. I am now trying to add a contact form. so the from: mail could be any one and the ...
Cécile Rougnaux posted

Active storage has_many_attach replaces older images instead of appending them in Rails 6
1
Rails
Was having issues with this but found out behavior was changed from Rails 5. You have to now add the following in your `application.rb` file:
```
config.active_storage.replace_on_assign_to_many...
Marcus S replied
Solved

Issue with Hash Serialization during update
0
Rails
Hi all,
I am working on fixing an issue that came up in our app and have been struggling to nail this one down.
I have a Company model that is a one to one with a FileCompleteness model so I have
...
Ben Densmore posted

has many through with devise and subdomains.
0
Rails
based on what I saw and learned from that lesson, I am trying to do what you said - one account could have many users - but I don't get it right, I used - has many through, because I want any user ...
ash posted

backup_code error in 2FA with devise
0
Rails
I am having similar problem, please advise!
Thanks,
Mike ( Head Adm of [Plakaty Zdrapki](https://zdrap.to) )
MikeJonson posted