background preloader

Rails-blog

Facebook Twitter

Mike Clark's Weblog. Jonathan ng - ruby on rails blog. Err.the_blog. YARB - Yet Another Rails Blog. Blogs » Ruby on Rails. Ruby? Rails? Ajax? Is this cluster of confusing buzzwords swarming around your head like a mob of angry bees? Then fear not, gentle padawan — Jedi help is at hand! For I, too, was just like you once: confused, jumping at shadows, sinking into the depths of yet another custom Python web framework while softly weeping behind a stack of dog-eared PHP books. But not anymore. Today I build my applications in Ruby on Rails. Rubbing the Rails So what exactly is this Ruby on Rails thing? Ruby? Ruby is an interpreted scripting language, just like Python and PHP. OOP is a Good Thing (TM) when it’s done right, and Ruby nails it.

Here’s a little sample Ruby code to whet your appetite: class MyClass def initialize @message = "My name is I.P. End my_joke = MyClass.new my_joke.be_witty As you can see, Ruby terminates code with a line break instead of a semicolon. Variables in Ruby can take different prefixes depending on where you want to use them: To use our class, we must first instantiate it. Rails? Nuby on Rails. Riding Rails.