/ #blog 

Rails, Content - Type, RJS and filters

Again - one of these “it takes several hours” to find it things: In an inherited application that I’m expanding, I was using RJS actions to handle inserts: page.insert_html :bottom, 'info_list', :partial => 'info' Because of some non-showing Umlauts, I switched on a filter to set the content type: <code> class ApplicationController < ActionController::Base before_filter :set_charset def set_charset headers['Content - Type'] = "text/html; charset=8859-1" end end </code> with the result, that all my RJS stuff stopped working. Finally I diffed against a working copy and found the line enabling the filter. I rewrote it like this, and things started to work again ...

Jens-Christian Fischer
/ #blog 

first swissRUG meeting success

The inaugural meeting of SwissRUG / Zurich.rb / bunch of geeks was quite a success, with 16 people turning up. Due to some communications gone bad, the restaurant only had reserved a table for 10, but by grabbing the employees table, we managed to squeeze all in. Quite a mixed bunch of people: The operating systems seemed neatly divided into 1/3 Windows, 1/3 Mac OS X and 1/3 Linux. About half of the people earn money using Ruby and/or Rails. There were quite a few “Ruby only” people. ...

Jens-Christian Fischer
/ #blog 

Textmate Footnotes and RJS render calls don't mix

Maybe this saves you a couple of hours of frustration: def syslog_progress if request.xhr? worker = MiddleMan.get_worker(session[:host_info]) progress_percent = worker.progress render :update do |page| page.call('progressPercent', 'progressbar', progress_percent) if progress_percent >= 100 page.assign 'stop_polling', true end end else redirect_to :action => 'list' end end The RJS calls didn’t execute at all and the excessive use of “alert()” to debug neither. Finally, looking at the response in FireBug I saw that the TextMate Footnote plugin was adding it’s links to the response, rendering the Javascript invalid. ...

Jens-Christian Fischer
/ #blog 

signed the Agile Manifesto

As of today: The Manifesto for Agile Software Development We are uncovering better ways of developing software by doing it and helping others do it. Through this work we have come to value: Individuals and interactions over processes and tools Working software over comprehensive documentation Customer collaboration over contract negotiation Responding to change over following a plan signed - Jens-Christian Fischer for InVisible GmbH Technorati Tags: agile, manifesto, work

Jens-Christian Fischer