/ #blog 

When tables are a bad idea

Remember my plea for help a couple of weeks ago? I haven’t really had any success with this (even though nice people tried to help me). But then things picked up in the last few days: I browsed through the “Agile Web Development with Rails” book and found a note that basically said, that Internet Explorer is borked when you try to manipulate the DOM of a table. It seems, that it’s not able to handle the innerHTML attribute of table rows or table cells. ...

Jens-Christian Fischer
/ #blog 

Joyent Slingshot

One thing that has always made Lotus Notes stand out above any other application development environment, is it’s ability to replicate data and design to different servers and/or laptops. This has made the development of online / offline versions of applications trivial. In general “it just worked(tm)”. While the Web (2.0) applications are taking the world in storm and SaaS is what everybody is talking about, there’s still a wide gap, when it comes to working offline. A lot of people need to work offline: On a plane, on the train or in a secluded chalet in the mountains. All of the fancy on-line browser apps fall very very short. Even though there are more and more places that are connected, these connections (through mobile phones for example) are slow and quite expensive. So offline functionality is (and will likely be for quite some time) a very important proposition for applications. ...

Jens-Christian Fischer
/ #blog 

assert_select and url_for

In the Extreme Testing presentation, I have a slide with assert_select examples, some of them lifted from the assert_select cheat sheet. All fine and dandy, except that this assert_select "form[action=?]", url_for( :action => 'foo' ) just doesn’t work. url_for is a method of the controller, not the ControllerTest class. So in order to overcome that limitation, you’d need to assert_select "form[action=?]", @controller.url_for( :action => 'foo' ) which doesn’t throw an error, but doesn’t work either, because url_for insists on adding https://test.host/ to the generated URL. Of course, that’s not what’s in the form you have generated. What you need to do, is to add the parameter :only_path => true to the url_for call: ...

Jens-Christian Fischer