In Ruby, classes and modules are called constants. This card explains how Ruby resolves the meaning of a constant.

guides.rubyonrails.org

When your Rails controller calls render, you can pass a :status option for the HTTP status code: render 'results', status...

blog.arkency.com

Amazing guide how to divide a ball of Javascript spaghetti distinct separate layers (model, view, controller, backend adapter).

github.com

Consent is an access control abstraction layer for ActionController. It lets you restrict access to actions across your application using...

codaset.com

Concerns is a simple Rails plugin that provides you with a simple way to organise your Controllers, Models and Mailers...

makandra dev

If you use the Better Errors gem, you will sometimes notice that it can be very slow. This is because...

Put the line below in the respective env.rb file to make your action controllers raise an ActionController::UnpermittedParameters error when...

When creating an ActiveRecord with .new, .create or create!, you cannot set the ID attribute (note: When using Machinist's...