Jay Fields

Another Rails Presenter Example


almost 11 years ago by Jay Fields on Jay Fields Thoughts.
Jamis Buck recently posted an entry about Moving associated creations to the model. His solution is cool and probably sufficient for the needs of most...

Ruby: Refactoring, Ruby Edition hosted


almost 11 years ago by Jay Fields on Jay Fields Thoughts.
I've updated www.rubypatterns.com this morning to be the home for Refactoring, Ruby Edition. I'll continue to post my progress on my blog; however, the...

Ruby: Refactoring - a First Example


almost 11 years ago by Jay Fields on Jay Fields Thoughts.
Chapter 1. Refactoring, a First ExampleHow do I begin to write about refactoring? The traditional way to begin talking about something is to outline the...

Ruby: Refactoring, Ruby Edition


almost 11 years ago by Jay Fields on Jay Fields Thoughts.
A few of my colleagues and I have decided to write, with Martin's permission, a Ruby version of Refactoring.To begin with this will be a port of the existing...

Rails: Enterprise Ready


almost 11 years ago by Jay Fields on Jay Fields Thoughts.
"Is Rails Enterprise Ready?"I've avoided the question since I started working with Rails. In fact, if pressed, I previously would have stated that Rails...

Rails: Unit Testing ActiveRecord Validations


almost 11 years ago by Jay Fields on Jay Fields Thoughts.
There are at least 2 easy ways to unit test the validations of an ActiveRecord::Base subclass.The most straight-forward way is to create a model and use...

Rails: ActiveRecord Unit Testing


almost 11 years ago by Jay Fields on Jay Fields Thoughts.
There's been a fair amount of information posted recently on the topic of unit testing ActiveRecord::Base subclasses. Of all the information, I think the...

Ruby on Rails Unit Tests


over 11 years ago by Jay Fields on Jay Fields Thoughts.
Updated following multiple comments requesting examples and questions on where to put AR::Base subclass tests.Everyone (who reads this blog anyway) knows...

Rails: Migrations with a large team part I


almost 11 years ago by Jay Fields on Jay Fields Thoughts.
I've been working on a big (in Rails terms) team for a few months now and we've come to some conclusions concerning Migrations. I'll start with the bad...

Ruby: Alias method alternative


almost 11 years ago by Jay Fields on Jay Fields Thoughts.
Originally blogged by Martin @ split-s. I'm reposting because I don't see this method used very often.Using Ruby's alias it is possible to reopen a class...