Webpacker noob - so I saw your video and im using rails 6

3
Rails
how does one go by installing https://github.com/metafizzy/isotope with webpacker? ``` yarn add isotope-layout ``` ``` require('isotope-layout') ``` now I get an error ``` .col-md-9 ...
Gus P replied
Solved

How to have one application for multiple URL's

1
Rails
We have a requirement where are rails application should be available on multiple domains like abc.com and xyz.com based on domain it will only show a different logo all the rest is identical. What...
Chris Oliver replied
Solved

fdsfds

0
General
Solved

How do I fork turbo and use it as my turbo version

1
Rails
How do I fork turbo and use it as my turbo version in a rails 6 app, I tried linking to the github of my forked turbo repo in package.json but it gave me an error couldnt find hotwire
Solved

I want to use devise gem for normal authentication and api authentication with devise-jwt gem. Is it possible?

1
Rails
Hi huys! I have an problem with devise-jwt gem. I have an default rails application. I want to use devise gem for normal authentication and api authentication with devise-jwt gem. But they can no...
Carlos Vazquez replied
Solved

Anchors being ignored when added to redirect_to path in controller

2
Rails
I feel I am missing something fundamental, or maybe just silly, when it comes to this issue. I am utilizing linking to anchors in most places in an app I am building and all is working well with l...
Miri Lama replied
Solved

Search Filters/Report Generator

3
Rails
I am working on a project for a client that consists of a primary jobs model that has a number of forms (other models) within it. I am needing to build out search functionality that searches throu...
RJ McCollam replied
Solved

Javascript function firing on page load

1
Javascript
Hi, I'm building my first web app using Jumpstart and I'm running into a weird issue with the Javascript in one of my show views. The issue I have is that instead of firing on click, the toggleC...
benjaminhouy replied
Solved

Newbie question trying to understand collection_check_boxes method

3
Rails
Hi, I am new to Rails, and I am trying to create checkboxes in a view. I came across this method: https://apidock.com/rails/v4.0.2/ActionView/Helpers/FormOptionsHelper/collection_check_boxes What ...
Pauline Velarde replied
Solved

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

Reverse Proxy with Caddy and Custom (Dynamic) Domain Names

1
Servers
TL;DR - how do I override the base_url (akin to CSRF protection?) with a set of valid domains? Hi all I run a PaaS of sorts which at present is hosted on Heroku and I have to map all my custom do...
David Lowry 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

Hatch Deploy

1
Servers
Hi, I recently deployed 2 apps on one server, how do I view the second app coz the view site button redirect me to the first app Ive deployed ?
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

Want to stay up-to-date with Ruby on Rails?

Join 89,509+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.