Adventures with Ruby on Rails

I’m finally starting to explore Ruby on Rails in earnest. I’m sitting here reading Agile Web Development With Rails, and some of the stuff I’m learning you can do with Rails is making me giddy. For example, cleaning up submitted input to “escape” special HTML characters (in order to not blow up the page layout, or worse yet, your database) is always a pain to deal with in web programming. With Rails, you do this. Let’s say you have a variable called “input”. To “clean it up”, you do this:

h(input)

That’s it! One letter and you’re done!

I can see why they call this agile web development.

Leave a Reply