/ #blog 

Rails 2.3 and Nested Forms within Nested Routes

Last week I finally got a chance to use the new nested routes in a small rails app, managing invoices for one of our clients. Each invoice belonged to a school and both schools and invoices had an address. It seemed (and was!) the perfect oppurtunity for nesting some forms. I whipped up a sample for the schools and wow! It worked. Automagically. Perfect. So onto the invoices. Now, logically, the invoices belong to a school, so using another bit of Rails magic I had nested the routes. This was great, as it gave me access to the school and kept everything neat and clean. But… the nested forms within the nested routes (lots of nesting going on around here, I know, but bear with me) exploded. They just refused to work. ...

Jens-Christian Fischer
/ #blog 

Materials for BDD workshop

The BDD Workshop I held at RailsWayCon in Berlin went quite well. I bombarded the 30 or so people with a lot of new and unfamiliar technology - not all of which is RSpec or Cucumber related. Using a Twitter App as an example, we cucumbered, speced, stubbed and mocked around for a whole day and in the end, we had a simple but working Twitter application running. On the side, we talked about the Pomodori method, HAML, used the great RubyMine IDE (I might end up using it for all my Rails development). There were a lot of things I couldn’t get into, maybe next time. ...

Jens-Christian Fischer
/ #blog 

Speaking at RailsWayCon in Berlin

Only a few more days, and the Rails World will converge on Berlin for RailsWayCon, an alternative conference to the cancelled RailsConf Europe. I will be teaching a workshop on BDD on monday, 25.5 - including working with Cucumber. See the complete Schedule. I’m looking forward to seeing a lot of good presentations and meeting old and new friends. The lineup of speakers is impressive: Ola Bini, Steven Bristol, Neal Ford, Michael (Koz) Koziarski, Yehuda Katz, Jan Krutisch, Mathias Meyer, Maik Schmidt, Stefan Tilkov, Jonathan Weiss, Heiko Webers and others. ...

Jens-Christian Fischer
/ #blog 

Amazon S3, Heroku and the Paperclipped Assets Manager for Radiant

Well this is my first post since joining Jens-Christian and Daniela here at InVisible, but the topic is an old one. About a year ago I released the Paperclipped Assets manager for Radiant, which started rather slowly, but has recently taken off and become quite popular. Thanks to the magic of github, I have received numerous patches and improvements and it has begun to take shape. With last week’s announcement of pricing by Heroku and their recent blog about installing Radiant, I decided to give it a try. And, much to my surprise it works really well. Getting used to the read-only file system is certainly something new, but it is surprisely easy and very fast. I love being able to push and pull the database at will, which for small sites in Radiant is a real must to keep everything in sync. ...

Jens-Christian Fischer
/ #blog 

scaling twurli

twu.li starts to grow. We track almost 8000 twitterers for their updates and collect the URLs. This takes more and more time (there is quite some potential for optimizing it by requesting things in parallel). Right now, that’s about 3 hours to do a full scan (and it will get worse). New URLs can therfore show up with quite a delay. To alleviate that, we implemented a simple priority queue system. The result? The more URLs someone tweets, the more often we will read your timeline. Tweeting less drops the priority for this user and we will use longer intervals. So twitterers like timoreilly will get scanned more often than the huge bulk, that doesn’t tweet as often. ...

Jens-Christian Fischer