Now you can use the excelent Prototype Window Class as easy as rails...
You only need some files included in the template:
stylesheet_link_tag 'default'
stylesheet_link_tag 'alert'
javascript_include_tag :defaults
javascript_include_tag 'window'
And then you can call the helpers in your views
link_to_prototype_dialog( 'Link', 'Hello world', 'alert' ) --
Link
link_to_prototype_confirm_url( 'Link', 'Go to google?', 'http://google.com', nil, { :windowParameters => {:className => 'alphacube'} } ) --
Link
link_to_prototype_window( 'Link', 'window_id', { :title => 'Window title', :left => 200, :top => 200 }) --
Link
You can get the helper here (v0.11.0)
by xurde.info - 2006