Archive for the ‘Ruby and Rails’ Category

Try Ruby!

Wednesday, December 14th, 2005

A guy got really creative with his ruby programming skills, and developed the Try Ruby website. You can go and walk through some tutorials which take all of ten minutes or so. And the interface is pretty cool too!

Unfortuantely, the project I wanted to do here at work with RoR is being pushed over to PHP, which I’m not too happy about. I think from an extensibility point RoR would be much more promising (and they just went 1.0 with RoR btw…). Maybe I’ll start looking into symfony, the PHP equivalent of the RoR framework…

Rails Notes – Database named ‘logs’

Thursday, October 20th, 2005

So, as I’ve been playing with Ruby on Rails (henceforth RoR or just rails), I have come across some issues which seem to be interesting, not obvious, and all together well documented. First and foremost :Don’t name a database ‘logs’ and expect things to work! It took me a few hours trying to decode what scaffold was really doing when it gave the error akin to “no method ‘count’ for logs controller.” Best I can understand, [Ll]og[s]? is a reserved term of sorts within rails and should not be messed with. I changed the database name, recreated the model and controller and it all worked like magic. So, in order for others to avoid such issues, I’m posting this on the web for all to see!

Thoughts on Ruby

Tuesday, October 18th, 2005

So I’ve been playing around with Ruby on Rails a bit recently. It seems like the presentation of the language is much nicer than I remember it. I looked at Ruby a while back when I was working on a project for Lunar Linux – but it never panned out. The Rails framework is quite slick – it does a lot of the startup work for you, and lets you go modify and update things as you can get to them. I started on a ruby tutorial, but like any programmer quickly found myself asking questions that the tutorial didn’t cover, and so decided to start off on my own little quick project.
(more…)