Showing online users in chatroom sidebar
0
Rails
Hi
I am building a website ("All-In-One") with articles publishing and a chatroom. The basic is done and apparently, everything works. So, now I'm working on better styling and details. here is the...
Bina Darabzand posted
Doing multiple uploads with Active Storage
0
Rails
Hi there,
I am following this tutorial to do multiple file uploads with DropboxJS but I don't know how to get multiple images belonging to a model to show in the 'show' page. Only one image shows ...
Arthur Truong posted
Migration issues
0
Rails
Can I know when I run "rails db:migrate" its updating mysql and schema but not in migration folder files. Also "rails db:migrate VERSION=0" is not working...
Semicolon posted
Is it a good practice to call third party api before every controller action?
4
Rails
Is it a good practice if we can call a REST api on `before_action` hook of `application_controller.rb` and store the response in helper method?
My Scenario is that I wanna call an API from another...
Ali Ahmed replied
Solved
Draper Gem or explicitly use Decorators and Presenters?
0
Rails
Hi, my question is simple that sometimes I have to extend my model with methods that are usually for more advance business logics and sometimes I need some methods that are used in views (not speci...
Ali Ahmed posted
How to make rails associations work
1
Rails
I have this set up, but noting gets saved to the db when I try to save a practitioner.
The tables are users, clinics and practitioners. The user should be able to create multiple clinics and each c...
Kasper Valentin replied
Solved
How to version model validations for an API?
1
Rails
Why is API versioning necessary at all? It is required for when we want to make some breaking changes to an API endpoint, like stop accepting certain parameters or if we remove some part of the res...
Chris Oliver replied
How do I sort fields for and include a new fields for entry?
1
Rails
Sorry for the confusing question, I couldn't think of a better way to phrase it.
I have a 'Prospect' model that accepts nested attributes for 'prospect_calls'. When editing the prospect I need to...
William Jones replied
Solved
How to Set Up a Stripe Scheduled Subscription with an option for Deposit but with only X months to Pay the Balance?
6
Rails
I am creating a Stripe product that gives the buyer an option to put a deposit down then they are given x amount of months to pay. Or they can pay in full. I'm sure that I would use scheduled subsc...
Jim Miller replied
Solved
Device application authentication via access and secret keys
0
Rails
I have been watching about the [How to buil apis with rails series](https://gorails.com/series/how-to-build-apis-with-rails) as a reference on how to create an API. Though I'm wondering on how can ...
norman santiago posted
Show time only in form input
0
Rails
I'm trying to display only the time in the edit form on my application, but I'm getting this:
2000-01-01 01:00:00 UTC
What I want is this:
01:00
How can I achieve this? thanks in advance
P.S.:...
Francisco Muñoz posted
Rails actioncable registered connection issue
0
Rails
I'm implementing ActionCable in my Rails app. I'm facing an issue with Registered Connection error. I'm using MongoID in my Rails app.
Here is my `connection.rb`
```
module ApplicationCable
cla...
Lee Terng Gio posted
How to split devise edit form in rails app?
8
Rails
I’m trying to split my rails devise edit form into 3 pages. But when I hit the submit button nothing happens and nothing gets saved.
Any help would be much appreciated :-)
I have created 3 edit pa...
Kasper Valentin replied
Solved
What's the best way to implement Web Push Notification with Rails API?
3
Rails
I have been looking on how I'm going to add a feature of Web Push Notification on our School Project currently and found some services like Twilio, Pushbots and OneSignal. Though even trying those ...
Chris Oliver replied
Solved
Testing Controllers that call an activejob
4
Rails
Hi,
My integration tests hit a create method in my API that calls an activejob. This works fine in the actual app, but when I run any tests I get:
`NameError: uninitialized constant Api::V1::Con...
Paul C replied
Solved
Rails 6: A web app and an API server.
0
Rails
Can a Rails 6 app be built to both be a performant app with views and serve out data via an api? I've been looking for a tutorial, post, google term on this and have had no luck. Pointers and advis...
Bob Walsh posted
Which is the best place to put a custom validator class ?
1
Rails
For a custom validator like in https://guides.rubyonrails.org/active_record_validations.html#custom-validators
Maybe `app/validators` ?
Maybe `app/models` ?
Some other place?
Chris Oliver replied
How I connect the rails 6 application to the angular latest version
0
Rails
Hi guys,
i am jaypal kadam, i have trying from week to connect angular 9 with rails 6 but i cnat ablee to do that , please anyone help me
Jaypal Ramkishan kadam posted
Can I use the has_many :through association to link tables, with more than 3 tables involved?
0
Rails
Hi all! Hope you dont mind a newbie question...
I need to categorize questions to several levels:
Subject
Book
Chapter
Section
Subsection
Minisection
Question
So Subject has many Books , Books h...
Dave Castellano posted
How to display and order model result with Ahoy::Event?
0
Rails
hi all,
I’m stuck with Gem Ahoy.
In my rails app, i have a Room model, each Room has many subject.
After installing Ahoy, i succeed to display the Ahoy::Event result (=number of views) for each...
Basile Marquefave posted