Blog - .NET, ASP.NET, AJAX, Ruby and more

Category Archives: Ruby on Rails

Introducing a Ruby Wrapper for Google Books API

Books.  Personally, I own a ton of them.  Add in my wife’s collection, and phew.  A few years ago, I decided to get my collection under control.  I have bookcases upon bookcases all over the place and I would lose track of my books.  I wanted to catalog my collection, so I built a site [...]

Also posted in google_books, Ruby | Tagged , | Comments closed

Ruby Beauty – Rendering a Rails Partial for a Collection

Continuing with my exploration of Ruby on Rails as a .NET guy, here’s an awesome example of Convention over Configuration at work.  I decided to add bite size snippets of some of the cool things I encountered in Ruby and Rails.  If you are interested in more, see my other Ruby posts. Today’s post illustrates [...]

Also posted in Ruby | Tagged , | Comments closed

Ruby Beauty – Rails and Time Zones

Continuing with my exploration of Ruby on Rails as a .NET guy, here’s an awesome example of Convention over Configuration at work.  I decided to add bite size snippets of some of the cool things I encountered in Ruby and Rails.  If you are interested in others, see my other Ruby posts. Time zone handling [...]

Also posted in Ruby | Tagged , | Comments closed

Ruby Beauty – Method Naming Conventions

Continuing with my exploration of Ruby as a .NET guy, here’s another example of Ruby’s expressive syntax in action.  I decided to add bite size snippets of some of the cool things I encountered in Ruby and Rails.  If you are interested in more, see my other Ruby posts. Naming conventions can be a good [...]

Also posted in Ruby | Tagged , | Comments closed

ActiveSupport Singularize Problem

I just happened to encounter a problem with the ActiveSupport inflector in my Rails app.  Here’s the problem: words that end in ess seem to be an issue.  For example: ‘dress’.singularize # => ‘dres’ ‘business’.singularize # => ‘busines’ ‘address’.singularize # => ‘addres’ D’oh, where did that ending ‘s’ go? Turns out that “Rails has a [...]

Posted in Ruby on Rails | Tagged , | Comments closed