Ruby on Rails Community Forum
Incorrect Content-Type Response Headers
2
Rails
Incorrect Content-Type response headers were found to be in use:
Content-Type: application/octet-stream is being used for PDF and Zip downloads.
How do I config the PDF and ZIP files to
Conte...
Simon Moro replied
ActiveStorage - AWS S3 use_accelerate_endpoint for certain users
0
Rails
Hi there!
I'd love to know if there's a straightforward way of implementing S3 accelerated uploads for certain users, with ActiveStorage. Essentially, I want my paid users to experience faster upl...
Simon Moro posted
How do I extend enum method?
0
Rails
Is there a simple way to either extend the enum methods OR to override the current bang method? I have a lot of enum statuses that I update with bang. However, the rails enum bang method is writt...
Amie Walton posted
No Client-side Encryption of Passwords
1
Rails
There are no client-side encryption of passwords when they are sent to the web server. In mitigation, the passwords are already protected by SSL/TLS during transit. An example of the POST request ...
Chong Hwi replied
What's the best way to.... store predictable but not essential attributes for a model
1
Rails
To be clearer - predictable but not essential, and always inheriting from defaults.
I have a series of sites based off the same codebase that at present I load with a settings file in application....
David Lowry replied
Learn Apache Spark
2
General
Hello Everyone, I don't know this right place or not to ask the question about apache spark. So if anyone suggest me the easy way to learn spark its good for me or can anyone suggest me is apache s...
Zach Swedberg replied
Extract KPIs from Rails app and append to spreadsheet
0
General
Hi,
Not sure if this is the right place for a question like this but I'm wondering if anyone has any examples on how to easily extract (and display) some Key Performance Indicators from a running ...
Demetrios posted
Refactoring Controller Methods Discussion
26
General
I'm still downloading this episode right now, but I want to answer your question in your email 'Should we do more refactoring and talking about how to write clean code in the future?'. And my answe...
Tito Brahmanto replied
What is the best way to work with user roles?
2
Rails
What is the best way to achieve this when people sign up? I have a user model and an account model. I want to have 3 roles in my application. The administrator, store_owner and end_user.
A store o...
Jul Zyw replied
Protecting source
0
Rails
I'm looking for a way to protect source code using a license server. Since ruby is not a compiled language looking for any experience with compiling ruby using rubyVM or other means.
Peter vande Put posted
Very strange Rails app behaviour
3
Rails
I've been writing a meal planning app, using Devise for user auth. I've generated the viexws,,,,,,,,,, set config.scoped_views to true, made sure routes.rb has devise_for :users, and setup my befo...
John replied
Solved
PG::ConnectionBad: FATAL: password authentication failed for user "deploy" capistrano rails
1
Databases
Hi
I am working on deploying rails application to digital ocean everything is worked fine. just stuck on that final step:
when I am runing
`cap production deploy`
I am getting
> 01 PG::C...
Thuba Mamba replied
Using Vuex with Forms in Rails Discussion
1
General
This is a very good episode to show Vuex.
I noticed that all your VueJS episodes use only a single app.vue
It will be very useful if you can create an episode to show a good way to display differe...
Carl Tanner replied
Setup noticed to send emails through a mailer?
2
Gems / Libraries
Hi Chris,
Sorry, I didn't "notice" (a lot to unpack here about my notice abilities) that you had a dedicated section for questions:
I was wondering how you configure your Noticed gem to work with...
Solved
undefined method `minimum' for #<Store:0x00007fb25c749b20>
1
General
Hi,
I have a Store model and a PricingClassification model. The PricingClassification belongs to Store. I have made a wizard for creating a store and I am trying to add a range in pricingClassifica...
Samantha O replied
Solved
How do I add ranges to my application?
6
Ruby
Hi in my app I want to have a price classification table where I want to add a range per person...
For example: range_per_person = 1-10, 11-20, 21-30 etc etc.
How can I achieve this? See my schema...
Chris Oliver replied
Solved
AnyCable
1
Rails
Hi Chris,
I'd like your post about action cable, and I wonder if you can do a similar one for AnyCable? thank you.
Ángel Méndez replied
Deployment Error on rake assets:precompile
0
Rails
I deployed my rails 6 application but on 'cap production deploy', when the 'rake assets:precompile' is run, I receive the following error.
ModuleNotFoundError: Module not found: Error: Can't resolv...
abdullah19100142 posted
Having problems getting SSL cert w/Rails app from guide:
0
Servers
Hi,
I was following this guide - https://gorails.com/guides/free-ssl-with-rails-and-nginx-using-let-s-encrypt - and i got past the error of
```Package 'python-virtualenv' has no installation cand...
Ryan V posted
How to Test Gem Dependencies with Appraisal Discussion
1
General
Thanks Chris, I actually can use this for making futurism future-proof 😅
The only thing I see is (and I'm using the exact same setup you do in that video), that appraisal fails to correctly load t...
julianrubisch replied