
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

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