Archive for April, 2006

ajax on rails

Wednesday, April 19th, 2006

ruby on railsJust 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.

Ruby on Rails : cookbook

Monday, April 17th, 2006

just followed this tutorial:

http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html

I have to say that Ruby on Rails is astounding. I’ve already watched the videos at www.rubyonrails.org - but its impossible to see how cool the thing is without trying it. Just by typing a few lines you get Rails making the whole thing for you. All thats left is to make it look good.

This is definately a way forward for me - next up - i might have something nice for you to see.

Ruby on Rails

Monday, April 17th, 2006

Right i’ve just installed Ruby, Rails, LightTPD, and MySQL on Tiger. I’ve got a feeling that going the Ruby on Rails way - might be a lot more fun than just using the php, mySQL option.

To install it go to rubyonrails.org, or if you use a mac - look here.

I’ll try some tutorials and let you know.