Javascript not executing
2
Javascript
I viewed the easyAutocomplete video, which was great. I have the DB query and JSON assembly working. And the Javascript loads into the browser (Chrome DevTools let's me inspect it). But it never tr...
Solved
Command 'rails' not found but it used to work perfectly...
4
Rails
Hello everyone,
I'm having some issue I really don't know why... It is the second time I get this but, after working on a Rails project without any problem, I try to get back to it and it tells me ...
DineshKumar replied
Solved
Missing partial error but lookup_context find it.
0
Rails
Hi everyone,
I'm get missing partial error even lookup_context find it.
my partial is in `view/unicorns` and partials name is `_unicorn_card.html.erb`
here is my controller code:
```ruby
res...
Louis-Frédéric Schefer posted
Solved
How to insert QRCode into PDF using receipts gem?
1
Rails
Hi!
I'm using receipts gem to generate pdf. Also I want to insert QRcode for the payment (for example into footer section).
Tell me please, is there any examples of doing so?
I want QRcode to consi...
czepesch replied
Solved
Chris, would you build Simple_Discussion differently today using Rails 7 and Hotwire?
2
General
I'm curious to hear how Chris would approach building simple_discussion if he had to start from scratch using Ruby 3.2, Rails 7 and Hotwire. Cheers! -Dan H
DanInBC replied
Solved
Where do I put a custom validator for a model?
4
Databases
I'm confused about where to put code for a custom validator I wrote, should I create a nested class inside the model file? or create a new file in models/concerns? I have the code but don't know wh...
Stéphane Paquet replied
Solved
How do I search Action Text with Ransack?
9
Rails
I have set up a basic search using Ransack but I don't understand how to get it to search Action Text. This is how it is implimented in the search_form_for:
f.search_field :title_or_rcontent_or_c...
Jay Killeen replied
Solved
Hatchox deploy
3
Servers
Hi Chris, I get this following error while try to deploy -----> Connecting to web-app (000.00.114.236) as root
Net::SSH::Connection::Session::CommandFailed: Command "mkdir -p .hatch"...
Solved
Rails 7.0.0rc1
3
Rails
Been playing around with Rails 7 aphla2 and yesterday they released an RC version. In my Rails 7 test app, which was previously running alpha2, ran ```bundle update``` it updated everything to the ...
Solved
How do I solve questions in the forum?
2
General
How do I solve questions in the forum?
Sahil replied
Solved
Is there an admin like Django or Laravel's Nova
3
Rails
Newbie to Ruby / RoR - got into Django since 2 yrs and started learning Laravel - one thing I want to know before I delve into it, is if RoR provides a backend admin like Django or an external pack...
claudiastuart replied
Solved
Modified Cyclomatic Complexity
1
Ruby
Do you know of a tool that does modified cyclomatic complexity analysis of Ruby code? Lizard does not do it correctly for Ruby, and I could not find a modified option on Rubocop.
Solved
Renew price for my subscription
2
Site Feedback
so I got my subscription last black Friday, I was wondering what would be the renewal price. do I keep the same discount? or does it goes back to the normal price?
ddokiajju replied
Solved
How do I create an input field for a polymorphic association?
7
Rails
For the sake of this question, lets assume I run a hotel and I want to make a system that manages the bookings of my hotel rooms.
While most of the time I book `Guests` in my hotel rooms, `Employe...
Solved
Which video...
1
General
Hello all,
Would someone please help me find the video in which Chris demonstrates how to check if a partial exists before calling it?
Regards...
Bruce Lulu replied
Solved
/app/vendor/bundle/ruby/2.7.0/gems/puma-5.6.5/lib/puma/launcher.rb:81:in `chdir': No such file or directory @ dir_s_chdir - /var/www/admin/ (Errno::ENOENT)
0
General
I have deploy my rails app to heroku
my ruby version is 2.7.6
alihamza174 posted
Solved
How do i use tom-select with stimulus and hotwire?
3
Rails
I'm using tom-select to either select from the options or create record in the modal. The problem happens when the form submits successfully and that newly created record is now have been selected ...
Archonic replied
Solved
I want to click on dynamically created HTML elements in stimulus js.
1
Javascript
for example in jquery we do this =>
So instead of...
$(".myclass").click( function() {
// do something
});
We do this....
$('body').on('click', 'a.myclass', function() {
// do somethi...
Abdul Basit Khan replied
Solved
Would you like to use Rails to improve someone's mental health?
3
General
Hey all,
I’m a product owner for a mental health NPO, HeartSupport. I have a team of 3 volunteer RoR devs that have built an MVP for a product that will scale mental health support across the inte...
Solved
Active-storage creating/uploading folder
4
Ruby
Have any of you guys worked on a project where you can upload or create folders inside your active-storage attachment model? In another words or better way of describing, imagine you have a model c...
leochad82 replied
Solved