Pimp my IRB
Custom .irbrc files can make irb and the Rails console more useful with extra methods, nicer printing, editor integration, and app-specific prompts.
simple_format helper for Javascript
Rough JavaScript equivalent of Rails simple_format for turning plain text into HTML paragraphs and line breaks. Whitespace preservation is not included.
Fix Capistrano warnings: Missing public directories
Capistrano deployment warnings can appear when Rails asset pipeline apps lack empty public subdirectories. Placeholder files like .gitkeep suppress the missing-path errors.
Rails 3 ActiveRecord::Persistence#becomes does not copy changed attributes
ActiveRecord::Base#becomes leaves changed attribute tracking inconsistent, which can break attribute_was checks after casting models with defaults. ActiveType.cast is often the safer alternative.
Define a route that only responds to a specific format
Constrain a Rails route to a single response format such as XML when one URL must serve only that representation.
Alternative to url_for's deprecated :overwrite_params option
Rails 2.3.10 deprecation warning for url_for :overwrite_params when generating links with replaced query values. params.merge supplies the full parameter set and avoids the warning.
Useful Ruby Pathname method
Ruby Pathname objects can build file paths with :/ or join, making path concatenation in Rails more concise and readable.
Silence specific deprecation warnings in Rails 3+
ActiveSupport deprecation warnings can be selectively hidden when a specific warning cannot be fixed and only certain messages should stay visible.
marco-polo improves your Rails console prompt
Displays the app name and Rails environment in the console prompt, reducing the risk of running commands in production by mistake.
has_defaults is now a gem
has_defaults is now a standalone gem; the old plugin is gone and plugins are unsupported in Rails 3.2+.
Introducing RMM, the Rails Maturity Model - Ruby on Rails meets the business world | Google Groups
A couple of Railsconfs ago, Courtenay and I did indeed discuss
Katapult 0.3.0 released
Katapult 0.3.0 adds Rails 5.1.4 and Ruby 2.5.0 support, a new Bootstrap-based design, Webpacker, and workflow and test improvements.
How to human-join an array in JavaScript
Human-friendly list formatting in JavaScript is awkward; joinSentence produces an Oxford-comma sentence from array items, similar to Rails to_sentence.
Asset pipeline may break Javascript for IE (but only on production)
JavaScript can break in Internet Explorer only after Rails asset compression in staging or production. Switching from UglifyJS to YUI Compressor can avoid these failures.
Using Apache Benchmark (ab) on sites with authentication
Authenticated pages can be benchmarked with ab by supplying the right session cookies; otherwise login-protected requests fail or measure the wrong content.
ActiveRecord meets database views with scenic
Use SQL views in a Rails app without switching the schema format to SQL; Scenic adds versioned, reversible migrations and keeps view definitions in SQL files.
How to find out if you are in Cucumber or in RSpec
Feature and spec code may need different behavior when Rails env is unavailable. Capybara.current_driver can distinguish Cucumber scenarios from RSpec examples.
Open a MySQL shell using credentials from database.yml
Open a MySQL prompt without retyping database credentials by using dbconsole with the password flag, optionally for another Rails environment.
gammons/fake_arel - GitHub
Backport Rails 3 ActiveRecord querying and chained scopes to Rails 2, including where, order, and to_sql for scopes.
rails/activeform
Alternative form objects for Rails may fit better than model-based validation and could become part of Rails 5.
EdgeRider 0.3.0 released
Adds compatibility with Rails 4.1 and Ruby 2.1, including a forward port of ActiveRecord::Base.scoped for newer Rails versions.
Rails: Disabling logging entirely
Rails logs can be silenced completely in a specific environment by replacing the logger with Logger.new('/dev/null').
The Complete Guide to Rails Caching
Caching in Ruby on Rails reduces repeated work and speeds up pages, but stale or fragmented cache data can hurt performance and correctness.
Rails 4 Countdown to 2013 | The Remarkable Labs Blog
Ruby on Rails 4 adoption will require updates for many web applications. A 31-day series prepares developers for a smoother upgrade.