Rcov 0.9.0 Now Available

Announces a version 0.9.0 of the test coverage tool RCov, now with significant user interface improvements and support for custom CSS.

HTML and CSS Enhancements in RCov 0.9.0

Describes UI and UX enhancements to rcov, the code coverage tool, including including dynamic filtering, improved HTML output, and support for custom CSS.


Writing Specs for Controller Actions that Return JSON

Demonstrates a method for writing RSpec tests to test output from Ruby on Rails controllers that return JSON content.

Making RCov Pretty with Custom CSS

A new fork of RCov delivers improved HTML output and support for custom CSS.


Drag and Drop With Nested Sets in Rails

If you're using Chris Bailey's Better Nested Set (or better yet, Brandon Keeper's awesome_nested_set) for your Ruby on Rails models, you may one day want to implement a drag-and-drop interface to reorganize your sets. Here's how I was able to implement it. ...

Nested Sets and Single-Table Inheritance

Provides a solution for problems raised by nested sets and single-table inheritance (STI).


Using counter_cache with STI Models

The counter_cache option for Rails relationships is invaluable in speeding up performance by reducing the number SQL queries, but there are a couple of things that you need to do to ensure that your counts start off right and to make the whole thing work with STI-based models.

DRY Your Tests With Dynamic Specs in RSpec

Use reflection and code generation to automatically created tests in RSpec for named scopes in Ruby on Rails ActiveRecord models.


Introspection & Reflection for Rails Controllers

Shows how to get a list of your Rails app's controllers in one line of code, plus tips for reflecting on controller methods and searching for controllers that match certain criteria.

Quickly Profile an ActiveRecord Model

Quickly determine an ActiveRecord model's attributes from script/console.


Date and Time Based ActiveRecord Find Conditions and Time Zone Support

Date and time based ActiveRecord find conditions may not work the way you expect after specifying a time zone to your Ruby on Rails application's environment settings.

Using RSpec to Test ActiveRecord Associations for Arbitrary Models

Demonstrates a method for using RSpec to test ActiveRecord models that are not backed by a database table.


BBRails Toolkit: Enhanced Ruby on Rails Development in BBEdit

BBRails Toolkit increases productivity for Ruby on Rails developers working in BBEdit. It provides a set of open source AppleScripts that add support for Git, Rake, Capistrano, Cheat, and more to BBEdit.

Moving Back to BBEdit from TextMate

Following the release of BBEdit 9, developers now have a serious alternative to TextMate as their Rails IDE.


Browse RDocs in Style with RDoctor

RDoctor provides quick and convenient access to the documentation for local RubyGems and plugins, and can even be used to generate documentation for plugins in your Ruby on Rails projects.

RDocs for Local RubyGems In Your Browser

Learn how to access RDocs for locally-installed gems right from your browser.


DRY Your Google Queries with the Custom Ruby on Rails Search Engine

How many times have you searched for something Ruby on Rails-related on Google, and come up with search results having to do with rapid transit? Or page after page of Git commit messages? Sure, you could add "ruby on rails" to your search query, but having ...

Getting to know acts_as_versioned

I've been using Rick Olson's acts_as_versioned Rails plugin on a project and recently ran into some thngs that I thought might be worth sharing. In general, acts_as_versioned behaves well and integration has gone smoothly. The object that we wanted to ve...


Rails ActiveRecord Relationships Flowchart

Rails makes it easy to create and manage relationships between objects with Active Record. This AR cheat sheet makes it easy to remember.

Cheat Sheets with BBEdit

Add a keyboard shortcut to BBEdit to provide direct access to a wiki of Ruby, Rails, UNIX, and other useful cheat sheets.


Confusion over Convention: Ambiguous Helper Methods

If you're a Rails developer, you've probably seen "helper :all" a thousand times near the top of your generated application.rb file, but do you know what it really means? Learn how to avoid ambiguous helper methods.

Add Filters to Views Using Named Scopes in Rails

Use named scopes and a helper method in Ruby on Rails to let users automatically filter the items in a view.


My New Favorite Rails Plug-In

Acts As Enterprisey creates slow response times to simulate a difficult and complex web development effort . Best of all, you get to be the hero and resolve the performance problem at the very last moment by just uninstalling it.

File_column bug with case sensitivity

After banging my head against a wall wondering why certain image uploads would silently fail, while others succeeded, I stumbled across a file_column bug (and yes, I reported it).


Using Faker to Pre-Populate a Dev Database

I'm currently working on a project to create a travel website, and I needed to have a bunch of member profiles to use for testing the member directory. I came across a great Ruby gem called Faker which I've used to create the dummy accounts. Installation i...



Related Topics

Ruby on Rails

With nearly 15 years of web development under my belt, I've had the opportunity to work with almost every imaginable web application stack. My favorite by far is Ruby on Rails, the open-source web application framework that lets developers create fast, scalable, and maintainable apps using common architectural patterns and agile techniques. Here you'll find a collection of Rails guides, tutorials, tips, examples and resources tailored for everyone from newbies to intermediate and advanced Rails developers.