Etech : Ajax on Rails
- bad are createNode
- good is innerHTML
- eval is a saint
The rest of the presentation will focus on how to deal with the above and make good code.
Rails started out knowing nothing about AJAX but they have fixed that now, it ships with prototype that is first line of defence against the bad & ugly and tries to fix the incompatabilities between browsers
His advice is that if you can – just forget about non compliant browsers – just don’t care about IE5.5 for example
also comes with script.aculo.us which is a high level component that handles all the ‘fancy’ stuff like drag&drop, sliding etc
We switch to a demo, no precooked meals here, created from scratch, it’s not of rocket surgeons, anyone can do.
a run through how to build an app in Rails, excellent example can also be found here it’s a fast and furious session which flows fast and has the odd real error accompanied by a bit of swearing and laughing, too fast for me but good fun
Quick move to Webservices, he doesnt like W3* and prefers REST as xml over HTTP as Ruby can figure this out
The rest of the session was more examples and coding, during the session Mark found Turbo Gears too which according to some developers is a better solution, personally have not enough expertise to call it, what I can say is that I’m pretty sure I can write something in Ruby, question is what….