/ #blog 

Daily-Log, 2010-11-22, Passenger 3, iUI and authenticity tokens

An update of our production server to Passenger 3.0 worked without problem - kudos to the guys at Phusion! We have changed several parameters and expect our large Rails apps to run faster and better. The main change was that we keep one passenger running for the most used apps, regardless if the app has been idle or not. We’ve had an iPhone layout for StellenAnzeiger for a long time. Intermittently we got Rails “Invalid AuthenticityToken” errors but were never able to pin them down. ...

Jens-Christian Fischer
/ #blog 

Daily Log, 2010-11-15, Capybara & Callbacks (with some phony thrown in)

Preparing for the public demos tomorrow in Lyon… Florian Hanke is here and has been furiously working on his great phony GEM. Phony handles phone number strings and can format them, parse them and do other fun stuff. After this days work, it will be able to tell us, if a phone number is a mobile number, a landline number or a service number. And we need that. Here’s an example of what Phony can do for you: ...

Jens-Christian Fischer
/ #blog 

Daily-Log, 2010-11-11 - Cucumber & APIs

We are using a lot of distributed Sinatra and Rails3 applications in our Mobino project. They speak HTTP-REST and JSON with each other. Because we are using Cucumber and RSpec, we also have some high level integration tests for the APIs. Today I started on cleaning up an API in the Rails app. I wrote a cucumber step to invoke the API. It took me a while to figure out the magic incantation to make the controller retrieve the parameters as JSON: Here’s the relevant part of the step_definition: ...

Jens-Christian Fischer
/ #blog 

Daily Log, 2010-11-09

Thanks to you commenters. The Rails 3 function I18n.transliterate('some String with ümläüts') #=> some String with umlauts (or even ‘uemlaeuets’ if you specify :locale => 'de' as an additional parameter to transliterate) works beautifully. In other news, I think I have the old retro 700 character format nailed down - let’s see if the organisation can handle the test files we are going to send tomorrow. Other than that - a lot of private meetings, not much of real work done. ...

Jens-Christian Fischer