ajax on rails
Wednesday, April 19th, 2006
Just getting to grips with the ajax side of things.
And finally its gradually dawning on me how rails actually works. Running a server on your home pc (mac in my case, still a pc in the strictest sense though isn’t it) really lets you know whats going on. The terminal you use to start up the ruby server spits out all the information you need about everythin you do. Everything seems so transparent it becomes very easy to see whats going on - and consequently things become easy to fix.
Today i’ve worked out a rails website works as one application - and you need to start up the server for that application. So a folder called ‘mysite’ will contain all the files for that rails app - then you start up the ruby server for that application - ie “ruby server/script” when you’re in that folder.
Making ajax seems to be too easy to be true. Infact follow this tutorial here for ajax on rails and you’ll see its no harder to use ajax than not to use it.

