Puneet Sutar

Puneet Sutar

Puneet, a highly proficient Senior Developer, specializes in crafting engaging user interfaces with React and scalable backend solutions with Ruby on Rails.
authorImg Puneet Sutar

Eager Loading Active Storage to Avoid N+1

Removing N+1 queries when we access the Active Storage attachments associated with an ActiveRecord model.
authorImg Puneet Sutar

Ruby 2.7 Private Method Calls with self

Ruby 2.7 allows calling a private method with a literal self as the receiver.
authorImg Puneet Sutar

Handling Attachments in Action Text Rails 6

Learn how to handle file attachments in Action Text, Rails 6's built-in rich text editor with WYSIWYG support
authorImg Puneet Sutar

Rails 6 Action Text for WYSIWYG Support

Rails 6 introduces Action Text, a framework to provide support for creating, storing, displaying and editing of rich text content in your application.
authorImg Puneet Sutar

Rails 6 adds db:seed:replant task

Rails 6 adds db:seed:replant task that truncates tables of each database for the current environment and then loads the seed data.
authorImg Puneet Sutar

Rails 6 Adds sms_to Link Helper Method

Rails 6.1.0 adds support for sms_to helper, which renders SMS anchor link tag, which when clicked pops open user's SMS client targetting the specified phon
authorImg Puneet Sutar

Rails 6 delegate with private: true option

Rails 6 adds support to pass an additional option private: true in order to delegate methods as private methods