Mayank Agnihotri

I'm a React and Rails enthusiast with two years of experience creating innovative software solutions that improve business productivity. I work well in teams and am always up for challenging projects. Born and raised in Navi Mumbai, I enjoy gaming and travelling in my free time.
authorImg Mayank Agnihotri

Rails 7.1 Now Allows ErrorReporter To Handle Several Error Classes

Rails introduces handle method for ErrorReporter API
authorImg Mayank Agnihotri

Rails 7.1 now allows matching exception messages to assert_raises assertion.

Check the exception and the message raised by rails or custom errors in tests together with assert_raises in a single line.
authorImg Mayank Agnihotri

Using quarter method by rails

Get quarter of the date provided for the current year or the custom year.
authorImg Mayank Agnihotri

Adding table names to error for duplicate column names

Table name is shown in the error when duplicate columns for the same table is entered while creating it.
authorImg Mayank Agnihotri

Restoring data using papertrail.

PaperTrail is a very useful tool, but did you know it can help restore the deleted records as well?
authorImg Mayank Agnihotri

Learn about tree shaking in Webpack 5

Tree shaking is a technique used by webpack to optimize the builds for production and reducing the build size by shaking off the dead code from its branches (modules).