How to Add Pagination for Blog Posts in Rails Discussion

5
General
I like the manual approach of looking inside the `pagy` object and finding your way to get what you want! That is what I usually do instead of searching the doc :) A simpler approach that I recomm...
D john replied

Normalizes method in ActiveRecord Discussion

2
General
I would like to add that you can add multiple attributes to be normalized ```ruby normalizes [:phone:, :fax, :mobile], with: -> phone_number { phone_number.gsub(/\D/, '') } ```
Tobias L. Maier replied

Noticed V2 is great! What am I missing on the issue of 'persisting clients subscription'

2
Gems / Libraries
I use the web_push strategy in Noticed V2 - and it's a kicker - my +1 on that, really! But I must be doing something wrong b/c everytime a user logs into the app hem is requested (by the service-w...
Walther Diechmann replied

How do I modify the query used to eager load associations

0
Databases
Hi, I have a classic hierarchical entity with single level of nesting ``` class Job < ApplicationRecord has_many :children, class_name: 'Job', foreign_key: 'parent_id' belongs_to :parent, op...
mchwalek posted

Decoupling Development: Rails + Next.js for Collaborative Full-Stack Projects

0
Javascript
Hey Rails Community! I want to share the gem that I believe will significantly streamline full-stack development workflows: https://github.com/raphox/next_rails_scaffold What Does It Do? The gem ...
Raphael Araújo posted

Blog Posts with File Uploads using ActiveStorage & Amazon S3 Discussion

25
General
How did you get to the Policy section on AWS?
D john replied

How to Access Rails Server from Other Devices on the Same Network?

2
Servers
I’m working with a Ruby on Rails application inside a DevContainer, and I’m trying to access the Rails server running on my localhost from other devices on the same private network. I’ve already tr...
Alex Sinelnikov replied

What are the costs of using a payment software solution?

3
General
Hello everyone, I'm researching payment software solutions for my business, and I'm curious about the costs involved. Can anyone share their experiences or insights regarding the various costs asso...
Srichakradhar Reddy Nagireddy replied

Adding Bluesky Delivery Method To The Noticed Gem Discussion

0
General
Next session should do this for nostr 🙃
Martin Barilik posted

Mac Sequoia: Rails installs but command line does not see it

2
Rails
I followed the directions but errors running the mise global command: gorails.com/setup/macos/15-sequoia Now, with this setup the command line sees ruby and gem. export PATH="/opt/homebrew/opt/rub...
Greg S replied

How can i install Daisy UI?

0
Javascript
I want to be able to use Daisy UI, but i am reading different ways to accomplish this – making me confused on how to actually install node packages. 1. One way is setting up the CDN, which is not ...

Tutorial on verifalia gem

2
Rails
Having trouble setting this up on my Rails 7 app. A tutorial would be very helpful! Some goofball is using a bot to clog up my db with fake users. I've got him throttled to one a day, but it's quit...
Cassandra Pace replied

How to build a chat app with Ruby on Rails

2
General
I recently put together a chat build tutorial where strangers can connect with each other via advanced group chats. I wanted to run it here and see if there's any suggestion or feedback to make it ...
Jacqueline Lavender replied

Authenticating Blog Admin Pages Discussion

18
General
Hi, Is it necessary to add @blog_post behind the edit_blog_post_path in the last part of the video or can that be left out as well? <%= link_to "Edit", edit_blog_post_path if user_signed_in? %>
Chris Oliver replied

Searchkick - Searching Polymorphic Associations

1
Gems / Libraries
I have an activity feed (thanks Chris for the lesson) and I would like my users to be able to search the feed for search terms. The activity is created on a nested record. Is there a way to search ...
Terry Bonds replied

Devise multiples scopes

1
Rails
Hi !, i'am using devise in rails, and i want to use devise for multiples scopes such as User, Member, Partner, etc..., But i would like to separete them both into diferents models, and there contro...
Jacqueline Lavender replied

How do I install a Bootstrap 5 theme with Rails 7

2
Rails
Hello, I have trouble using a Bootstrap 5 theme (like those we can find on themes.getbootstrap.com, for instance) with a Rails 7 application I'm building. I'm not sure which is the best way to inte...
Tommy Ortega replied

HTML Learning Path - Form Parameter Naming Conventions In Rails Discussion

1
General
Overall epic course on the basics of HTML Collin. Thank you for taking the time to create these videos. I was always wondering about the tag being used to break the controls to a new line. Never s...
cjilbert504 replied

How can I solve this problem?

2
Servers
ERROR (SSHKit::Command::Failed): Exception while executing on host 142.93.8.11: docker exit status: 1 docker stdout: Nothing written docker stderr: Error: target failed to become healthy
Alan Reid replied

Magic Link Authentication with generates_token_for in Rails 7.1 Discussion

7
General
is magic link login considered secure ? can it be used for a production website reliably ? Thanks
Andrei A replied

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

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

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