Strong params: Raise in development if unpermitted params are found

Unpermitted request data can slip into Rails controllers unless action_on_unpermitted_parameters is set to log or raise; development can fail fast on unexpected keys.

Mute Rails asset pipeline log messages

quiet_assets suppresses noisy asset pipeline messages in development logs, reducing clutter while keeping them available when needed.

Making media queries work in IE8 and below

IE8 and below ignore @media queries, leaving responsive layouts broken; Respond.js can polyfill support for older browsers without loading it for everyone.

Spreewald: Old-school cucumber steps, freshly pickled

Spreewald keeps Cucumber-style web steps available while adding reusable steps for emails, tables and time travel in a Ruby gem.

Disabling HSTS

Removing an HSTS policy requires sending Strict-Transport-Security: max-age=0 over HTTPS so browsers forget the site is HTTPS-only.

Retrieving the class an ActiveRecord scope is based on

Edge Rider adds #origin_class to relations, returning the underlying class for unscoped lookups across Rails versions.

Why you might not need MVC with React.js

React.js uses a virtual DOM to re-render only changed parts, making full-screen updates fast enough that subviews and MVC separation may be unnecessary.

Disabling Spring when debugging

Spring can hide code changes while debugging Rails commands because it reuses a cached application process. Disabling it avoids stale behavior in rails and rake runs.

Offtopic: Floppy-disc OS

MenuetOS is a tiny 32/64-bit x86 operating system in assembly, fitting on a floppy and supporting GUI apps, USB, networking and SMP.

How to create Rails Generators (Rails 3 and above)

Rails generator creation and customization rely on Thor-based classes, template lookup, hooks, and customizable output for models and controllers.

docopt: A promising command line parser for (m)any language

Command-line interfaces can be defined in usage text and parsed automatically, avoiding handwritten option parsing and keeping help output as the source of truth.

Ruby Exception Class Hierarchy

Ruby exceptions form a hierarchy that determines what rescue catches by default and how errors like Timeout::Error changed between versions.

Sticky table header with jQuery

Keep table headings visible while scrolling large tables by cloning the header and syncing widths and horizontal position with jQuery.

Hash any Ruby object into an RGB color

Deterministic RGB colors from Ruby objects for labels, avatars, or grouping when the exact shade does not matter; Colorizer also generates similar hues with adjustable saturation and lightness.

Restangular: How to remove an element from a collection without breaking restangular

Removing an item from a Restangular collection with _.without drops custom collection attributes like route, breaking later parent-based requests. splice keeps the array object intact.

better rails app restart with the passenger restart-app tool

passenger-config restart-app restarts a Rails app immediately without touching tmp/restart.txt, avoiding the next-request delay and fitting Capistrano deployments.

Rails 2: Refuse response formats application-wide

Bot traffic can trigger ActionView::MissingTemplate by requesting bogus URL suffixes. Restricting allowed request formats application-wide prevents invalid format parameters from reaching controllers.

Customize and download ยท Bootstrap

Bootstrap variables can be overridden to customize an application, and bootstrap-sass uses $ instead of @ for variable names.

AngularJS directive to format a text with paragraphs and new lines

Plain text in AngularJS can be rendered as paragraphs and line breaks while escaping HTML fragments, similar to Rails simple_format.

assignable_values 0.9.0 supports virtual attributes

assignable_values can now validate virtual attributes, letting attr_accessor fields accept only approved values without custom validation code.

Linux: How to print PDF files from the command line

Command-line PDF printing is useful for batch jobs and headless systems, with lp sending files to the default or a chosen CUPS printer.

Ruby: How to camelize a string with a lower-case first letter

ActiveSupport String#camelize(:lower) turns snake_case into lowerCamelCase for JavaScript-style naming without custom string handling.

Where is that rake task defined?

rake -W [substring_of_task] locates the source file and line for a Rake task when its definition is hard to find.

Listening to bubbling events in Prototype is easy

Prototype event handling on individual elements is brittle and breaks after AJAX replacement. Delegated document.on bindings keep change handlers working on dynamic content.