A Few Weeks With Rails

Ruby on Rails It’s been a few weeks since I started using Ruby on Rails, and so far it has been pretty good. That isn’t to say I havent run into a few hickups.

I am quite familiar with PHP, so I set out to try to do the same things in rails as I would in PHP. Everything seemed to transfer over without effort… except file upload inputs. These kept me busy for quite some time, and had me wanting to pull out my hair.

I tried to make use of the community; exploring the wiki, reading through the rails cookbook, seeking out blogs that addressed the issue, visiting #rubyonrails on irc.freenode.net on a regular basis. Infact, the IRC community was referring me to the wiki article (HowtoUploadFiles). No matter how I tried, the upload just wouldnt work. I had narrowed the problem down to the multipart => “true” definition, but that was about as far as I could get without help. Luckily, I know a few rails nunjas (gurus) who helped me figure out what to do.

As it turns out, the rails wiki was incorrect. Since the project is opensource, it was easy enough for me to fix the documentation (perhaps the documentation was for a previous version of rails, and hadn’t been updated), but it was still a frustrating week (I was actually only working on it maybe and hour a night, but still) especially since it was such a simple task I was trying to complete.

Hopefully there are no more hiccups like this as I go forward. I am already thinking about a cool new idea which I am excited to work on once I complete this test application.

Leave a Reply