How to Build Custom ActiveRecord Validations Discussion

4
General
How does "resizable_image: true" work? I'm assuming that because you named your validator "resizable_image_validator.rb" with a class name "ResizableImageValidator" and then calling "validates :ava...
marilynohara replied

Retrieving Link Metadata with Background Jobs Discussion

4
General
Posting here in case anyone else ran into the issue where they tried to run a test, but got the error of having pending database migrations (also after running db:migrate). For me what helped is r...
barker xavierr replied

nanotape

0
General

Help

1
Ruby
Implement a Ruby method can_you_vote? that returns true or false depending on the given age. This method should take one arguments (age), an Integer, and return a Boolean(true/false). can_you_vote...

Esbuild

5
Rails
I'm trying to get away from Webpacker... Installed the gem JSBundling on a Rails 6.0.1.x app, followed the setup procedures to use EsBuild, and it worked. Got BootStrap 5 working with the guidance ...

solidus

5
General
I am creating my e commerce using solidus. In the admin backend, I pload products but then they are not reflected in the frontend...anyone who has come accross this?

How to Optimize ActiveRecord Queries with Large Data Sets in Rails 7?

3
General
I'm working with a large dataset in Rails 7 and some of my Active Record queries are getting slow. I've tried using .includes and .select, but performance still lags. What are the best practices fo...
Karen J. Cooley replied

remove the class="simple-form"

8
Gems / Libraries
how to remove the class="simple-form" from a form created using the gem?
João M Cortat replied

css forum Go Rails strategy

0
CSS
I'm following the tutorial for creating the forum and using Tailwind to do the layout. I have seen that classes are used that are not native to Tailwind. What strategy did you use to build the Go ...
João M Cortat posted

Nested Layouts with Rails Discussion

0
General

Creating a Ruby Gem for Black Friday sales Discussion

4
General
We're using this gem to hide and show the Black Friday sale banners on GoRails. 🎉 Check out our Black Friday sale: https://gorails.com/blog/black-friday-2024

Routing Concerns and Scopes in Rails Discussion

6
General
Hey Chris, thanks for making a video on this and so quickly. I had been wanting to use routing concerns for a while but finding a good way to access the resource had me stumped. This does the trick.
David Larry replied

Stimulus Autoscroll and Broadcasting Messages Discussion

5
General
Very nice, I'm enjoying these videos where you walk through the approaches and build on them piece-by-piece! One StimulusJS-specific update could be converting your message partial to: ``` ...

Permission Failed when deploying to render

2
Ruby
I am on windows 10 and i was trying to deploy to render but meeting the v=below error Bundle complete! 14 Gemfile dependencies, 68 gems now installed. Gems in the groups 'development' and 'test' ...
David Larry replied

Listopia is launched!

1
Site Feedback
Listopia is a simple, effective open-source list and task management app. It lets you share lists and tasks with friends, family, and team members. Enjoy it and star it on [GitHub](https://github.c...
David Larry replied

Restrict devise routes

2
General
Hi, How can I restrict access to the devise sign_up route to logged in users only? Controller: ```ruby # frozen_string_literal: true class Users::RegistrationsController < Devise::Registrati...
herrylauu replied

Dedicated Servers i want rent 100

4
Servers
Dedicated Servers CPU 16 cores, 3GHz or higher, example AMD 5950x 128GB RAM or more 1TB or more NVME SSD 500 Mbps+ channel, 100TB/month traffic
Davidmenk321 replied

Asset Pipeline

1
General
What are some excellent resources to get a good foundational understanding of asset pipeline, esbuild, import maps, js bundling. I have a decent knowledge of Rails, but I have trouble understanding...

Can't login to Learn Hotwire course, with my GoRails login (and can't sign up)

2
Site Feedback
Hi, I tried signing up for the Learn Hotwire course, but it said my email was taken. Naturally I tried logging in with my GoRails login, no dice. Attempted to reset the password, but never recei...
Karla Lara replied

How to use Enumerable with Ruby Classes Discussion

1
General
What use cases have you used Enumerable for?
Karla Lara replied

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

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

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