Jay Fields

Rails: Plugins, Why?


over 11 years ago by Jay Fields on Jay Fields Thoughts.
I've been wondering for awhile if the Plugin system is something worth taking out of Rails. It's not that I have anything against Rails plugins, but I cant...

Ruby: sqldsl 1.4.0 released


over 11 years ago by Jay Fields on Jay Fields Thoughts.
This morning I released the 1.4.0 version of sqldsl. This release is mostly in response to the suggestions that sqldsl has recently gotten from the Ruby...

Ruby: instance_eval and class_eval method definitions


over 11 years ago by Jay Fields on Jay Fields Thoughts.
In yesterday's entry on Cleaning up Controller Tests you can find the following code.# example 1...test_class.class_eval do define_method :setup do ...

Blog: New Url


over 11 years ago by Jay Fields on Jay Fields Thoughts.
My blog has moved to a new location.For Viewing: http://blog.jayfields.comRSS: http://blog.jayfields.com/rss.xmlAtom: http://blog.jayfields.com/atom.xmlPlease...

Conferences: Presenting at GoRuCo


over 11 years ago by Jay Fields on Jay Fields Thoughts.
I'm happy to announce that I will be presenting at Gotham Ruby Conference 2007. The conference is already sold out, but you still have time to add your...

Ruby: Why sqldsl?


over 11 years ago by Jay Fields on Jay Fields Thoughts.
I recently wrote about introducing sqldsl into my current project. This led to a few conversations on what are the pros and cons of using sqldsl.Cons:Additional...

Ruby: sqldsl new version


over 11 years ago by Jay Fields on Jay Fields Thoughts.
I recently put sqldsl to work on my current project. Part of putting it into our codebase was extending it to support some additional syntax. The new syntax...

Ruby: LocalJumpError workaround


over 11 years ago by Jay Fields on Jay Fields Thoughts.
I was recently working on some code very similar to the following distilled example.class Foo attr_accessor :some_val def self.method_with_additional_behavior...

Rails: ActiveRecord Serialize method


over 11 years ago by Jay Fields on Jay Fields Thoughts.
On my current project we have a model with a few attributes that are instances. Generally, this is handled with a relationship (e.g. belongs_to). However...

Should Rails include Mocha?


over 11 years ago by Jay Fields on Jay Fields Thoughts.
I like the way the Rails integration tests currently depend on Mocha.# integration_test.rb...begin # rescue LoadErrorrequire 'mocha'...rescue LoadError...