Archive for March, 2008

The rumors of iUI’s demise

Wednesday, March 12th, 2008

With the release of the iPhone SDK last week, there's been some speculation that the end of iPhone web application development (and of the usefulness of the iUI library) is on the horizon. I think this is a mistake, though; the SDK just makes the equivalent of desktop application development ...

Testing iPhone web applications

Monday, March 10th, 2008

One of the ongoing frustrations with web application development for the iPhone is testing - until last week, you were either forced to use an actual iPhone with some manipulation to get your development site accessible to it, or to experiment with "simulators" that are really nothing more than constrained ...

The evil, unnecessary has_and_belongs_to_many

Friday, March 7th, 2008

Just a quick couple of reasons why you should not use HABTM: It's too magical. The join table is hidden, and with the emphasis on has_many :through the documentation is less available for HABTM. The vast majority of the time, your join model already or will soon have additional data that is ...

A quick testing tip

Wednesday, March 5th, 2008

Generally, when you run your tests in a Rails app you get something like this: Started .................E...................   1) Error: test_editors_for_returns_none_for_selection_if_no_editors(PagesHelperTest): ActiveRecord::StatementInvalid: Mysql::Error: Unknown column 'images.user_id' in 'where clause': SELECT * FROM `images` WHERE (`images`.user_id = 1) LIMIT 1 test/unit/pages_helper_test.rb:20 all_tests.rb:1 You may have noticed that ...