Thursday, June 2, 2011

Random search in Rails

User.find(:all,'RAND()',:limit =>5)
User.find(:all,'RANDOM()',:limit =>5)

Wednesday, June 1, 2011

Installing Zen Coding eclipse plugin

Select menu
Help > Install New Software ... > and add into location column.

Check Zen Coding for Eclipse and proceed

After instaling finished, type html > Ctrl(command) + E and it will converted <html></html> if installing successfully finished.