
Can I authenticate the static files served with Rails
0
Rails
I have a static Jekyll site on my main Rails app in `/public/support/`. I would like to protect this site and only allow authenticated users to access it. Can I do that?
Dan Tappin posted

DateTime comparison in Rails 6
0
Rails
Hi -
I built this simple app to practice with ActionMailer as I learn Rails (LINK: https://github.com/eleetyson/time-capsule).
It works fine locally but when I deployed to Heroku, it seems that ...
Ethan Lee-Tyson posted

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

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

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

How do I add Bootstrap theme to an existing Rails application?
1
Rails
Hi everyone! I'm new to RoR, I have followed the blog tutorial on the rails guide website and now want to add layout (Bootstrap to be specific) but don't know how to. I have read so many articles b...
Tim Jones replied

Rails 6 Active storage setup - NameError Exception: uninitialized constant #<Class:0x00007fddde3597d8>::Analyzable
3
Rails
I'm setting active storage with s3 in Rails 6.
- I did rails `active_storage:install` and `db:migrate`.
- In development.rb, i added:
`config.active_storage.service = :amazon`
- I added `gem "...
Richard C replied

Reopen ActionCable after login?
4
Rails
Hey Folks,
I'm currently using [Jumpstart](https://jumpstartrails.com/) and [Stimulus Reflex](https://gorails.com/episodes/stimulus-reflex-basics).
After logging in, I am getting an error in the...
Marcus S replied

Mail Password hacked
2
Rails
I have a Rails application that runs on an Ubuntu server and sends emails through an external SMTP server. Now I was informed by my provider that the email password of the SMTP server was hacked an...
Herbert Schmoll replied

Struggling to get rails working
3
Rails
If I use "sudo gem install rails", it says everything is installed
Then I hit "rbenv rehash" and try to create a new project. The CLI gives me the error:
Rails is not currently installed on this ...
sam replied

Shrine: get URL of uploaded with host
0
Rails
I use shrine for uploading excel sheets. I need to process those files.
How can I get the url but with host? I tried the plugin default_url. But it doesn't work
Yassine Hafidi posted

Skipping Devise Confirmation for Stripe Signup
0
Rails
Hi Chris - How could I skip the Devise confirmation if a user is signing up to pay with Stripe?
I am following this video on your stripe course: https://courses.gorails.com/courses/payments-with-r...
Brian Gilbank posted

How do I create a duplicate with associations included?
8
Rails
I'm fairly new to Rails and still learning. I recently stumbled upon a problem that I'm sure there is an easy way to fix it, but I haven't figured it out yet. In the application I'm trying to creat...
msalsabil replied
Solved