 
    Invite using phone number instead of email
            
            0
          Rails
        
          I am using devise gem for authenticating users. I modified it a bit to let users signup using a mobile number instead of email id. Which now works as expected.
What I want to do next is inviting us...
        
      
            
            kshitijLohbare posted 
          
       
    How do I get the value of an attribute in a model method before submitting
            
            0
          Rails
        
          Let's say I have an attribute :year_of_birth for example and another field :age (readonly), I fill in the year_of_birth. And I make a method in a model to calculate the age, how does the age get po...
        
      
            
            Samantha O posted 
          
       
    Order by score using Pagy pagination?
            
            3
          Rails
        
          Hi everyone. I am currently trying to order some ActiveRecord records by score. In my controller i have:
```ruby
def index
    @pagy, @drivers = pagy(
        Driver.select(
            'drivers.*...
        
       
    Background Jobs
            
            3
          Rails
        
          Hey there,
I'm using nested attributes to generate a bunch of records at once. I'm coding a tool that crawls IP and Website Informations.
The nested attributes are set up like this:
-Company
--h...
        
       
    SweetAlert integration
            
            1
          Rails
        
          I was able to intergrate sweetAlert properly(*not using the gem but by including the files manually in vendor  *)and  overiding the rails defaults  as follows in the application.js file=>
```
$....
        
       
    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