“Fat models” cause maintenance issues in large apps. Only incrementally better than cluttering controllers with domain logic, they usually represent...
rake stats # => LOC per controllers, models, helpers; code ratios, and more rake notes # => collects TODO, FIXME and...
At TaskRabbit, we have gone through a few iterations on how we make our app(s). In the beginning, there...
Deployment ready for Opscomplete Copying view and controller templates over to target application during basics configuration or via...
When your Rails controller calls render, you can pass a :status option for the HTTP status code: render 'results', status...
In Ruby, classes and modules are called constants. This card explains how Ruby resolves the meaning of a constant.
Amazing guide how to divide a ball of Javascript spaghetti distinct separate layers (model, view, controller, backend adapter).
Consent is an access control abstraction layer for ActionController. It lets you restrict access to actions across your application using...
Concerns is a simple Rails plugin that provides you with a simple way to organise your Controllers, Models and Mailers...
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
Rails is our web framework. Goals Be able to write a simple Rails application. Understand how Rails talks to the...
Web security basics Einführung in die Web Security 🇩🇪 provides essentials for the topic of this card. Read following chapters: