Accept subscription and one-time payments with Stripe in your Rails apps
Building a simplified version of Instagram is a great way to learn Rails.
Expert advice on keeping Rails apps organized and fast.
Cheap, easy hosting for Ruby and Rails apps.
Launch your product business way faster with our SaaS template.
Using instance variables we can send data between controllers and views and take a look at how that works
Learn how to build an activity feed from scratch and how to manage lots of flexible partials
Taking the ERB code we wrote for simple_calendar and finding the right balance of Ruby and ERB for our gem
Pagy is 29x faster at pagination in their benchmarks which makes it an ultra fast and lightweight pagination library
How to build nested comments and threads in Ruby on Rails
Implementing polymorphic, reusable comments across models and limiting the nesting allowed for nested comment threads
Using AJAX, we can submit our comments and have them render onto the page without a page refresh.
Nested comment threads pose a lot of unique challenges. One of these is deleting comments because you can easily lose the child comments or context. We'll take a look at a couple great ways of handling this.
Adding pagination to our nested comment threads is easier than you might think, plus we'll take a look at a couple different approaches we can use
Join 33,665+ developers who get early access to new tutorials, screencasts, articles, and more.
We care about the protection of your data. Read our
Icons by Icons8
© 2020 GoRails, LLC. All rights reserved.