A collection of 15 posts

Sep 11, 2019

Making friends with RuboCop

At Memory.ai, we started using RuboCop heavily. This is a story of how we integrated RuboCop into our existing app. This is not an introductory post to RuboCop. Check out what RuboCop

Aug 26, 2019

Understanding Webpacker in Rails 6

Starting with Rails 6, Webpacker is the default JavaScript compiler. It means that all the JavaScript code will be handled by Webpacker instead of the old assets pipeline aka Sprockets. Webpacker is different

Aug 22, 2019

New framework defaults in Rails 6

Rails 6 is released. This post is part of the Road to Rails 6 series which will prepare you for Rails 6.Every time a new major Rails version is released, there are

Jul 15, 2019

How to (not) use unscoped in Rails

Active Record provides unscoped to remove all the scopes added to a model previously.class Article default_scope { where(published: true) } end Article.all # SELECT * FROM articles WHERE published = true Article.unscoped # SELECT

Feb 23, 2014

Devise : Passing params to after_* paths

Devise allows us to customize after_signup_path by overriding a protectedmethod in RegistrationsController.class RegistrationsController < Devise::RegistrationsController protected def after_inactive_sign_up_path_for(resource) your_custom_path end def