How do i display comments count of next page?

7
Ruby
I have a post and post has many comments, and i have made a load more button to load more comments with ajax. I would like to display on the button how many comments next page has. I use will_paginate
herrylauu replied

Retrieving Link Metadata with Background Jobs Discussion

5
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...
Noullooduady1995 replied

Looking for indie hackers + open-source builders to spotlight in our Ruby community

2
General
Our email-list audience for rubyconfth.com grew to 2000 subs this year šŸŽ‰ To celebrate, I’m putting together content that highlights indie hackers, community builders, and open-source creators and ...
fnf unkin replied

Your First Ruby Gem Discussion

7
General
Thanks Collin I've authored a few gems already, but this was a really useful look at the "bare-bones" approach rather than use the "bundle gem your-name-here # and fill in the blanks" approach. ...

development env: is the asset pipeline expected to compile all assets or just those in demand?

2
Rails
I'm trying to understand if, in development, the asset pipeline is supposed to compile ALL assets found in manifest.js or just the ones that are requested. I've been doing some testing and have fo...

Morse Code with Ruby - Part 2 Discussion

0
General
In this lesson, we will continue the previous project and add the Morse code sound feature.
Lakedra Cole posted

Defer Job Enqueues After Transaction Commit in Rails 7.2 Discussion

1
General
Raise your hand if you're guilty of making this mistake in the past. šŸ‘‹šŸ˜¬

Recommended UI component sets?

1
Rails
Our Rails codebase has been going strong for over 10 years now, but we're looking to upgrade the UI of our admin pages. These are all served as HTML snippets as always advocated by the Rails team (...
James Smith replied

Security Hardening Servers with Fail2Ban Discussion

9
General
Great epiode Chris! Would love to see more like this!
Evelyn Stone replied

Deploying the Web Scraper Rails app to Production & Setting Up Cron Jobs Discussion

5
General
I wish the linking of the database was a bit more clear. My app was pulling in the credential in the database.yml file instead of simply linking via the DATABASE_URL environment variable. I had to ...
herrylauu replied

What is the best configuration for VScode for Rails Development alongside JS

4
Tips
Hey Guys, So I'm actually trying to properly setup VS code for rails, But I am not able to make it as perfect as I set it up for JS or other languages. Currently, I am using rubocop, selenium, rub...

Using Deprecation Warnings in Rails Discussion

1
General
What features will be deprecated and replaced with ActiveSupport::Deprecation?
Allen Duke replied

Send Notifications in Rails with Noticed gem v2 Discussion

10
General
The video talks about implementing a sort of escalated notification. Like send a slack web hook and then in 5 minutes send an email but not if the recipient already saw the slack web hook. Is buil...
wuuko replied

Ruby Pattern Matching Discussion

2
General
What version of Ruby added this?

Rails for Beginners Part 41: Next Steps Discussion

5
General
Thanks Cris I think I have something wrong cause the schedule tweets is not sending tweet at all. I have change the UTC to America/Brasilia. Could give me some advice in my https://github.com/adalb...
Jake Govett replied

How to Build a Slack Slash Command App with Rails Discussion

11
General
/soo nice /great job!
taggame replied

How do I test different configurations which are set at Rails boot time?

1
Testing
I'm currently working on a fix related to an issue in spree commerce: https://github.com/spree/spree/issues/12231 To test the failing behavior before I apply my fix, I wrote a Rspec test like this...
Karla Lara replied

Organizing Rails Model Files Discussion

7
General
Great episode, Collin: thank you I also found the annotate output at the top of the file annoying, so my team now has annotate config set to output at the bottom of the file: Annotate.set_def...
leo rasy replied

Use select_tag to link to customer show page

14
Rails
I'm converting a MS access databse to Rails. The database has a customer table of over 5,000 customers. I have imprted the customer table from the Acces db into the Rails postgres db. I can use th...
Audrey Square replied

A Simpler Build with Broadcasts Refreshes Discussion

1
General
My general rule of thumb is I'll use redirecting back/morphing for very simple or low-frequency pages such as admin pages where there's not a lot of user traffic, but will reach for turbo streams w...

Learning Ruby on Rails? Join our newsletter.

We won't send you spam. Unsubscribe at any time.