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

grouped_options_for_select --- include a select all

0
Rails
Hi, I have Categories and CategoryType. A Category has_many CategoryTypes. In my form, I am using grouped_options_for_select to display the different category types for a category. Form: ...
Amanda posted

Refreshing the page with form errors

2
Rails
Hey all. Currently building a project with rails and so far really enjoying it. I've been using php & laravel for a long time and let me say ruby and rails are quite refreshing. In laravel wh...
Chris Oliver replied

Trix issue driving me crazy

2
Rails
Hey folx, I've been banging my head against the wall for the past two days, and I'm at this stage where it's time to ask smarter guys than me (cough, cough Chris) to help me out. This is a 7 year...
Marianna Szinek Kenesy replied

How do I override the default link_to helper?

3
Rails
I accept a lot of user input links and output them as anchor tags. As a result, I'm worried that there may be cases of users trying to inject Javascript into the href attribute. I would like to ov...
Chris Oliver replied
Solved

Mailboxer Issue

1
Rails
I setup the Mailboxer gem in my application. Everything was working fine, except a read conversation kept showing up as unread. I decided to run this command in the rails console: [user].mailbox.co...
MicahBHoward replied
Solved

Nested preference settings with activerecord store

2
Rails
As per this [Episode 191][1] is there any way I can add nested settings? for example: ``` { "wants_reminders": true, "wants_deals_offers": true, "subscribed_to_newsletter": true, "something_here":...
Chris Oliver replied
Solved

splitting asset pipeline for front and backend

1
Rails
app has a consumer facing part and large backend/CMS part. our assets (JS and SCSS) are precompiled into a very large file in layouts we have a different layout for front- and backend Is it possib...
Yi Mei Wang replied
Solved

Have you taken the 2020 Ruby on Rails Developer Community survey, yet?

1
Rails
This is more of an invite. We're conducting our bi-annual Rails survey where we dig into some details on versions being used, hosting environments gem usage, third-party services, etc.. so that we ...
Chris Oliver replied

How can I force cloudfront assets to use http2?

0
Rails
in our app we have an image library which stores images in S3 linked to cloudfront. cloudfront configured for http2 server is puma + nginx problem is performance seems like all assets served from c...
Peter vande Put posted

Want to stay up-to-date with Ruby on Rails?

Join 89,621+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.