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

Yearly Archives: 2010

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 [...]

Posted in Ruby, Ruby on Rails | 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 [...]

Posted in Ruby, Ruby on Rails | 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

Ruby Beauty – Optional Parentheses on Method Calls

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. Optional parentheses on method calls are [...]

Posted in Ruby, Ruby on Rails | Tagged , | Comments closed

Ruby Beauty – Dynamically Invoking Methods

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 others, see my other Ruby posts. Within the context of Ruby, you [...]

Posted in Ruby | Tagged | Comments closed