Monthly Archives: March 2008

Datamapper Issues

I love Datamapper, but there are some aspects of it that throw me because they don’t work the way they should on first glance.

Foreign Constraints

Let’s make a few objects.

class Apple < DataMapper::Base   property :name, :string   end   class Banana < DataMapper::Base   belongs_to :apple, :class => ‘Apple’, :foreign_key => ‘a1′ belongs_to :apple, :class => ‘Apple’, :foreign_key [...]

You Cannot Name a Controller Action ’send’ in Merb

I learned this the hard way.

class Main < Application   def send # Do some stuff… end   end

This breaks horribly, even if you’re not navigating to that exact controller action.

~ Request: /favicon.ico ~ Request: ~ Params: {”action”=>”index”, “controller”=>”main”} ~ Routed to: {:action=>”index”, :controller=>”main”} ~ wrong [...]

Living on the Edge of Merb

absolute_url generates a full URL with route parameters. Merb.testing? added, for an easy way to determine if Merb is running in its testing environment in rake tasks and the like. The Ebb adapter was updated to work with Ebb 0.1.

Paul Mison says Apple is Just Trying to Fit In

Here:

I mean, it looks like Apple are behaving just like every other developer on the platform, but I can’t say that if I want to get my page views up.

This is true. Apple is acting like evey other developer on the platform. And they’re certainly within their rights to. But should they? How [...]

39 Clippings, Part 1

For a decently long time I’ve been keeping track of newsfeed articles that catch me attention in the ‘Clippings’ folder of NetNewsWire. Since I’ve just finished with school and have a lot of free time, I’m going to go back and see why I saved those clippings originally, and write a little something about each [...]