Rails Assets

Automatically wraps Bower packages as gems for the Rails asset pipeline, but duplicate JavaScript copies can conflict when mixed with other package sources.

Migrating to RSpec 2 from RSpec 1

Rails 3 requires rspec and rspec-rails 2, with renamed namespaces, changed requires, and macro extensions that may break during migration.

When using time zones, beginning_of_day / end_of_day is broken in Rails 2 for any Date or DateTime

beginning_of_day and end_of_day on Date and DateTime ignore Rails 2 time zones, so database queries can hit the wrong records.

Rails' Insecure Defaults - Code Climate Blog

Rails has solid built-in protection, but some default behaviors remain risky in Rails 3 and parts of Rails 4. Security gaps can still leave apps exposed.

How Rails and MySQL are handling time zones

Rails and MySQL handle datetimes differently: local-zone storage can avoid conversions, while UTC mode supports per-request zones but requires Time.current and careful timestamp handling.

Enable NewRelic monitoring [for Rails] on specific hosts only

NewRelic monitoring can be restricted to selected Rails hosts by checking the current machine name before enabling monitor_mode.

Nested controller routes (Rails 2 and 3)

Namespaced controllers and nested resources can align routes, controller classes, and view paths in Rails 2 and 3, reducing controller-directory clutter.

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.

How to fix "undefined method `name' for Array" error when running bundled commands on Ruby 1.8.7 + Rails 2.3

Bundled commands can fail on Ruby 1.8.7 and Rails 2.3 with undefined method 'name' for Array because rubygems-bundler or Bundler no longer works reliably on older setups.

Rails: How to list all validations on a model or an attribute

Inherited models and concerns can hide which checks run on a Rails model; validators and validators_on reveal them at runtime.

Spreewald 4.3.3 released

Built-in support for Rails and Bootstrap error classes reduces step overrides, while configurable error classes, XPath selectors, and optional negation improve flexibility.

Rails: Default generators

Default Rails generators create different combinations of models, controllers, migrations, routes, views, and tests, helping choose the right generator from the command line.

Delivering Carrierwave attachments to authorized users only

Sensitive file attachments can be restricted to authorized users, or served from hashed public paths and expiring URLs for safer access without exposing direct storage locations.

Fix error: Missing the mysql2 gem

Rails can report a missing mysql2 gem even when it is bundled if database.yml still uses the mysql adapter; older Rails versions need mysql2 0.2.x.

Installing Rails on a fresh system

Setting up Rails on Ubuntu needs Ruby, Bundler, and the right development packages; repository RubyGems often causes problems, and project gems should be installed with bundle install.

Rails 3 routing: Be careful with matching routes *including their format*

Routing a dotted path can break Rails format detection, leaving format as html despite an XML constraint. Matching the route without the extension preserves the intended xml format.

Rails 3.1 gives you free down migrations

Rails 3.1 lets a single change migration run forward and backward automatically, while irreversible updates are skipped during rollback.

Create a valid RSS feed in Rails

Valid RSS output in Rails needs strict XML formatting and proper feed metadata; Atom builder can be a safer alternative for syndication feeds.

Automatically validating dependency licenses with License Finder

Dependency licenses can break closed-source projects when unapproved OSS terms slip in. License Finder validates all dependencies during test runs and flags restricted licenses early.

3 ways to run Spring (the Rails app preloader) and how to disable it

Rails commands can start Spring unexpectedly, and DISABLE_SPRING disables it only for non-explicit invocations. Different launch paths affect console and rake behavior.

How to fix routing error when using concerns in Rails up to 3.2.22.1

Routing error in Rails 3.2.22.1 can appear when concerns is passed as an option to resources, producing broken routes and failed controller specs.

ExceptionNotification gem will only show application backtrace starting on Rails 4

Rails 4 exception emails from ExceptionNotification may lose gem and library lines because the default backtrace cleaner filters them out.

Fix error: rails console No such file to load -- irb/encoding_aliases.rb (LoadError)

Rails console fails after upgrading Ruby because spring tries to load a missing irb file. Updating binding_of_caller to 0.8.0 restores console startup.

Why you can't use timezone codes like "PST" or "BST" for Time objects

Timezone abbreviations are ambiguous and often unsupported in Rails time handling; ActiveSupport zone names and offsets avoid wrong parsing, DST mistakes, and misleading displays.