Save 36% for Black Friday! Learn more

Rails Ruby on Rails Forum

Custom Validations Issue

6
Rails
I have a custom validator that I would like to protect some data on my Users to Sites has_many through relaitonship. There is one extra piece of data on the `sites_users` join table `is_default` w...
Thomas Bush replied
Solved

Bundle Package and Deployment

10
Rails
Hi all, New user to the Gorails site, what a fantastic resource! I'll be upgrading to Pro shortly. I have a first question (probably of many)... I am deploying my app with Capistrano and it ...
Chris Oliver replied

Iam desperately trying to deploy my App with Capistrano but it isnt working

2
Rails
Hey Folks, I have always received great help here, so I hope that it will work out this time so shortly before the end. I would like to deploy my app on my server and use capistrano. However, I c...
Sebastian replied
Solved

Missing `secret_key_base` for 'development' environment, set this value in `config/secrets.yml`

2
Rails
Hi, im newie with Ruby and Rail. Right now im following Book Two from Daniel Kehoe. I stucked with SECRET_KEY_BASE. Ruby -v : **2.4.1** Rails -v: **5.1.6** After I restart Puma: Puma caught ...
CodeParody replied
Solved

How do I query a model with a value less than

2
Rails
I have a Lesson model that has an order field of type integer. What i want to do is find the previous lesson. Lesson.where("order < ?" , 8) This causes the following error. Any...
Chris Oliver replied

How i can reuse one rails webapp as a API?

0
Rails
Hi, i build a rails application but i need reuse this app to create a API to use this as a backend for a IOS Application, this is posible? Thanks for yours comments.
Miguel Rios R posted

Shrine::Error: storage :cache isn't registered on FileUploader

1
Rails
Im using Mongoid 6.0.3, ruby 2.3.1 and rails 5.2 I created a file_uploader class for handling my uploads using shrine. > > /app/uploaders/file_uploader.rb ``` class FileUploader < Shrine...
Ashutosh Mittal replied
Solved

Alternative solution for belongs_to through

0
Rails
What is the alternative solution for belongs_to :through in association
Ravikumar posted

Not able to override a column with default value

1
Rails
I have created this in migration, ``` created_by VARCHAR (64) DEFAULT CURRENT_USER, updated_by VARCHAR (64) DEFAULT CURRENT_USER ``` By default the current user values are stored but when i try to...
Jose replied

RAILS SIDEKIQ SCHEDULER

1
Rails
I would like to launch the worker after an action and this worker must be launch automatically after every 5 seconds to check a status and when the status is checked, it must be stops. How can I do...
Chris Oliver replied

Ruby on Rails save on model has_many to has_many doesn't trigger on build

0
Rails
We have this model called "Cliente" (cliente.rb): ``` class Cliente < ApplicationRecord has_many :clientes_hardwares has_many :clientes_notificaciones has_many :sucursale...
Ulises Carreón posted

Error when running in Test Env

2
Rails
Hi peeps, I setup linux virtual machine in Azure, I was following this guide https://gorails.com/deploy/ubuntu/14.04 I want my VM as my test environment, however when I run 'cap test deploy&#...
geekdie replied

Nested Model of an already nested model

0
Rails
I want to make sure my thinking is right more than anything else on this post. Hopefully I can explain myself clearly and get pointed in a good direction. **My Scenario** I have 3 models. Model A...
RJ McCollam posted

Capistrano deployment is not happenning after Server IP Change

0
Rails
Problem: Recently We have changed IP address of the stage server. We are using Capistrano for deploying rails application. So after changing server IP address when we run a command: cap develop(bra...
Rutul Shah posted

JWT with Devise (App and API)

3
Rails
Hi, I'm looking to extend my Rails 5.2 application that uses Devise for authentication so I can support API requests via JSON. I have looked at Chris' videos and did some searching around ...
Chris Oliver replied
Solved

rails generate devise:install hangs

2
Rails
I ran into this issue today whilst I was trying to deploy jumpstart template into **my Rails 5.2.1 App** When I ran rails generate devise:install nothing happened. No errors, no output – nothing...
Felender Hlungwani replied
Solved

SEEKING FREELANCER, Colorado Springs, remote: true

2
Rails
I have a Rails app I built with 5.2. It's intended to be similar to Soundcloud in some ways, Spotify in others. I am using Carrierwave to upload audio files to Amazon S3. One of the things I wo...
Marcus S replied

How to validate a form without a page refresh ?

0
Rails
We commonly do validation via client side validation in rails. But how to make the validation using ajax that is validates the form without page refresh
NarenPushparaju posted

How do I work with nested forms? Rails 5, Simple form

0
Rails
Link to Stackoverflow question: https://stackoverflow.com/questions/51942719/unable-to-render-double-nested-form
Cepheaus Chee posted

Load only products based on region ideas please :)

3
Rails
Hi all, Im trying to work out the best way to do a task. On the users menu, they are able to select a region they are a member of. Once a user selects a region I want to load all data on the page ...
Jacob Montgomery replied
Solved

Learning Ruby on Rails? Join our newsletter.

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