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.
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: 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.
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.
Good real world example for form models / presenters in Rails
Rails form-specific model layer for screen logic, separate validations, and callbacks without bloating the base model; useful for different workflows and presentable collections.
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.
Rails + Sidekiq::Web: Configuration for wildcard session cookies
Sidekiq::Web can create duplicate session cookies when Rails uses a wildcard cookie domain, breaking logout and other session-dependent actions.
Clean your Rails routes: grouping
Large routes.rb files become hard to manage as Rails apps grow. Splitting routes into small partial files keeps routing organized.
Installing multiple MySQL versions on the same Linux with mysql-sandbox
Run several MySQL releases side by side in one Linux account for testing or Rails development, using isolated sandboxes on separate ports.