Monday, 2 March 2020

RuboCop In Rails

RuboCop

A RuboCop is used in Rails best practices and coding conventions. It will make your code in good standard format. it will suggest you the best option to refactor your code in your rails application.


Installation

gem install rubocop-rails


Usage

You can run rubocop in your terminal. You can see the changes in yours console.

$ rubocop

Interactor in Rails

What is interactor? Interactor provides a common interface for performing complex user interactions An interactor is a simple, sin...