
How to import javascript from Gems with webpacker
4
Ruby
Ive come across an issue where some gems I want to use (specifically social-share-button) need to have a javascript file imported but with webpacker in rails 6, not quite sure how to do that now
Uttam replied
Solved

LoadError: Unable to autoload constant Validators::LapseValidator
6
Databases
I wrote a custom validator for a model in my app, but when I try to access that model I get
```
LoadError: Unable to autoload constant Validators::LapseValidator, expected /home/lflores/Projects/c...
Solved

Should I switch to RoR from Laravel?
5
General
Hello there,
I'm a web developer and using Laravel for day-to-day life.
It's been around 5 years of developing with Laravel. But I feel neither comfortable nor confident using Laravel.
And I feel ...
hennybell227 replied
Solved

Cannot Reset Devise Password
1
Gems / Libraries
I am currently using devise, pretty much straight out of the box, the only changes i've made is custom views.
The problem I am having is that I cannot reset a user's password. I follow the link ge...
Dylan replied
Solved

Having a problem to Paginate an iteration with Kaminari
2
Rails
I'm trying to paginate a result of an iteration using Kaminari. The pagination is showing well but its not cutting it into another page. All is showing on the same page even when I click on page 2,...
Solved

Secure an Open Rails API skiping the login process for thirdparties...best strategy
0
Rails
Hi there,
I've got a Rails API that I would like to open to third parties. Basically I've got a platform where third parties can access it via API to retrieve a product list with name,category, st...
Eduard Garcia posted
Solved

Root route bypassing before_action
0
Rails
we have a posts_controller which takes a slug to render the correct page.
posts_controller inherits from application_controller which has a couple of before_actions
routes.rb has the following roo...
Solved

Implementing Hotwire
1
Rails
Hello good people.
I was watching DHH's video on hotwire and @Chris video on on this site demonstrating hotwire.
Do we still need stimulus js in case we want to implement that on the group chat ...
Suleiman Nassor replied
Solved

Sendgrid / Mailer Issue
1
General
Hello,
I run a website and I am having issues generating mailer links correctly, when a User signs up they must verify their email address. This all works as expected, mailer sends the email and i...
Red Hendery replied
Solved

Why is github permission denied after adding deploy keys?
1
Rails
I followed every single tutorial, and tried multiple different methods of authenticating my server's access to the github repo. All of it results in the same error, permission denied.
Last few li...
Jamie Crone replied
Solved

Store a hash in a database
2
Databases
I have a calculator that takes yearly pension contributions into a hash. Therefore, everyone has a contribution lined up with a year. I don't want a database of dozens of years as one individuals c...
Solved

Stripe connect issues
4
Rails
I am currently working on integrating stripe connect to my app but it isn't working. I don't get any errors when I run it and it asks me to create an account and redirects back to the website but w...
Fatumata Jalloh replied
Solved

Help parsing a string down to what I need it to be.
2
Ruby
I am working on an API integration and I have to authenticate via one call, take cookie values from the response, and use them in a new call. Using HTTParty I can make all the calls I need to, but ...
RJ McCollam replied
Solved

Rails repeats Webpacker packages if I go backwards (OwlCarousel, DataTables)
2
Rails
Hello there.
I've got a Rails app that repeats packages if I go back to the page that's supposed to render them.
For instance, my OwlCarousel with two images will multiply and have the carousel n...
cratag replied
Solved

DataTables Install via Webpacker
4
General
Anyone get this to work?
Details here:
https://datatables.net/forums/discussion/57642/installation-issues-rails-yarn-webpacker#latest
Greg Blass replied
Solved

Create Customer Url
2
Rails
Hello @chris and fellow members. I am new to rails and I was seeking help on how to create a url like "mydomain.com/5047315/projects/21789643 where is *5047315* the user account number ?
Regards,
...
karatepicke replied
Solved

How do I listen for dropdown changes in a collection_select field using Stimulus?
1
Rails
I found this issue on SO which pretty much is my issue:
https://stackoverflow.com/questions/63964037/cant-make-stimulus-js-data-action-in-collection-select-rails-6
But I can't make that solution w...
Nicolás Kruk replied
Solved

Searchick filter with scope
11
Gems / Libraries
Has anybody used searchkick with a scoped model?
I have an `Article` model with `scope :published, ->{ where(status: "Published") }`.
So In my `ArticleController` I did the following:
```
quer...
Owen replied
Solved

How to disable TURBO_STREAM for the `form_with` helper?
1
Rails
I want to incrementally start Turbo on my app but when I enabled it it has broken all my forms. How to disable it from `form_with` in order to be able to incrementally update my app?
Pedro Fernandes Steimbruch replied
Solved

Your biggest aha! moment?
5
Tips
Basically, what has been your biggest code aha! moment. That time when you understood some concept or mantra that you were familiar with but couldn't wrap your head around.
For me, being the noob ...
Chris Oliver replied
Solved