blog.codeclimate.com

“Fat models” cause maintenance issues in large apps. Only incrementally better than cluttering controllers with domain logic, they usually represent...

makandra dev

rake stats # => LOC per controllers, models, helpers; code ratios, and more rake notes # => collects TODO, FIXME and...

makandra dev
tech.taskrabbit.com

At TaskRabbit, we have gone through a few iterations on how we make our app(s). In the beginning, there...

makandra dev
github.com

Deployment ready for Opscomplete Copying view and controller templates over to target application during basics configuration or via...

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...

Best results in other decks

This whole class Mage_Core_Controller_Varien_Exception has only one reference in the core, see search result.

use Magento\Framework\App\Action\Context; use Magento\Framework\App\Response\Http\FileFactory; use Magento\Framework\Filesystem\DirectoryList;

Search in all decks