LakTEK A Sri Lankan, A Rubyist and A Web Dude

Building Real-time web apps with Rails3

On deciding the web framework to build Realie, one of the main considerations was should I move to a totally asynchronous framework? Most established web frameworks, including my favorite Rails is built in a synchronous manner and follows a call-stack based model. Real-time web apps needs to be asynchronous. Evented programming model ideally suits to […]


Interesting stuff to watch out in 2010

We are already into the 2nd decade of 21st century and it is very evident that this would be the decade, where Cloud Computing, Realtime web and Mobile Web will start to rule!
As per some buzzword fanatics, this year (2010) will be the transition year from web 2.0 to web 3.0. Buzzwords aside, as […]


[Rails Tips] Reduce Queries in ActiveRecord with :group

I thought of sharing some tips in Ruby on Rails development, which would come in handy especially if you are a newbie.  The cornerstone of all of Rails’ magic is ActiveRecord. As you know it’s an ORM, which hides all cumbersome and mundane SQL by a syntactic sugar coating. However, blind and lazy usage of […]


If Rails is a Ghetto, Merb is a Whorehouse

Don’t get confused over the title, I’m not trying to punch the Merb community as Zed did to Rails. A grasshopper like me don’t even qualify to do such a rant. I’m actually trying to pimp Merb!
Merb is the newest addition to Ruby town. First, it was started just to satisfy the unfulfilled desires of […]


Extended-Bort: My base Rails app

Bort is an awesome base Rails app, which allows you to get into real action without wasting your time on setting up the most common and boring stuff. It comes with RESTful Authentication, OpenID support, Capistrano Mutli-stage deployments and many other essential plugins, thus lifting good work load. I first got to use Bort when […]


Contact Form using Merb & DataMapper

Major benefit of using Rails to develop web applications is its smart conventions, which promote developers to adapt to common patterns and avoid wasting time in reinventing the wheel. Rails is strictly bonded with a database and has a pre-defined directory structure. Though these conventions are helpful in common cases, it reduces the flexibility of […]


Passenger - Holy Grail for Ruby Deployment

Popular notion about developing web apps with Ruby on Rails (or other Ruby frameworks) was “You can write a web app in 15 minutes, but it will take 15 days to deploy it correctly”. Especially if you are coming from the world of PHP, where you have to just write the app and upload it, […]