Posted by: Shyam Sundar on: October 15, 2008
Rails framework has many plugins for handling subdomains. One of the recommended plugins to achieve the same is Subdomain-fu.
Subdomain-fu uses Rails’s URL Writing mechanisms to provide an easy and seamless way to link and otherwise understand cross-subdomain routing.
Before attempting to know, I suggest to read a write up by Jamis Buck on understanding how rails [...]
Posted by: Shyam Sundar on: August 17, 2008
Its true!
I tried parsing a 15MB, proper XML file with nearly 20 sub nodes for a parent node.
Being newbie to Ruby, I came across the default option of REXML. I instrumented the code using the Ruby benchmark API.
A Single simple XPath query for one node to traverse thro’ the entire XML file using REXML takes [...]
Posted by: Shyam Sundar on: August 5, 2008
Being a newbie to rails, I find many interesting things to do a certain operation. They call it the ruby or the rails way of doing things.
The Fine Print:
The find method, supports passing o a parameter to order based on table columns in ascending or descending order.
Example:
@users = User.find(:all)
Here @users, will have all the users [...]