Ruby on Rails

0
Rails
What is the path for learning Ruby on Raila? Which course do I start with? Thanks in advance.
ashritharai posted

Scope has_many relationship

0
Rails
I have four models 1. Problem 1. User 1. Question 1. Reply ```ruby class Problem < ApplicationRecord has_many :questions end ``` ```ruby class User < ApplicationRecord has_many :questi...
Josh Goldman posted

ActiveRecord queries are running too slow for Rails project

0
Rails
My ActiveRecord queries are taking too much load time and slowing down my API response times. I don't even have much data in the databse, like for accounts table there are only 10 rows. I'm running...
Simmi Badhan posted

How can one setup a service booking app with time limitations?

6
Rails
Hey guys, how can one setup a service booking system where the customer can book services between 9am and 4pm on every monday and friday? Would you use the ice_cube gem to create timeslots and the...
Emily replied

Rails form post creates a 'Do you want to download “<form target>”' prompt on mobile

0
Rails
Hey everyone, I'm just testing my first Rails app on mobile and whenever I submit a form I get a prompt to download the form target. See the screenshot below: [Download Prompt on iPhone8](https:/...
TensAndTwenties posted

Rails micro-services and authentication domain to use with devise

0
Rails
Hi! I'd like to split my rails application to microservices, such as - main app 1 - main app 2 - main app N - authentication and account management - administration console - marketing console (bla...
Alexey Poimtsev posted

Managed Postgres with DigitalOcean or thru own server with Hatchbox

5
Rails
I've been going thru the various ways to publish a rails app and trying to decide which method is going to be the best in the long run. After some searching I think Hatchbox and DigitalOcean is go...
Olly Headey replied
Solved

how to debug this

1
Rails
Is there a method to debug hosted ruby on rails application and check the request and response object
hammersxo replied

Overly Detailed Internal Error Messages

1
Rails
Errors which previously caused stack traces to be shown now only show the following generic error: "The page you were looking for doesn't exist." However, the server responded with the response c...

How to block users from getting messages?

0
Rails
Hey everyone, I have an internal messaging system in Rails 6. I was wondering how can I add the logic for a button to block the user in conversation that I'm messaging with. My setup and details...
Ulas posted

How do I show a modal popup from a link_to button

1
Rails
Hi, I am trying to build a modal popup when pushing a link_to button. How do I accomplish this? The modal doesn't popup yet, but is underneath my link_to button. &lt;% if signed_i...
Samantha O replied
Solved

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

Learning Ruby on Rails? Join our newsletter.

We won't send you spam. Unsubscribe at any time.