
First argument in form cannot contain nil or be empty
0
Rails
Hi,
I'm trying to create an account from a popup form. But I get the first argument in form cannot contain nil or be empty. What am I doing wrong?
class AccountsController < ApplicationCon...
Samantha O posted

How do I deploy webpacker with nvm with capistrano?
2
Rails
Hi,
Was following your tutorial for capistrano but did not see any webpacker in there :(.
Right now I am having a problem that cap seems to be finding my old node version before I installed nvm...
Greg Blass replied

Huge syslog file in production
3
Rails
Hi,
We have a rails app with sidekiq in an Ubuntu 18.04 machine hosted in AWS.
We've recently started to run out of space in our disk. I've then noticed that we have a huge /var/log/syslog file, ...
Chris Oliver replied
Solved

Session is not set until the page reload
0
Rails
I work with Rails remote form. After set the session like session[:user_id] = 123, the session is still blank {}. After I refreshed page, I got the user_id value.
How can I access those session wit...
Uysim posted

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.
<% 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