Blog
Backbone.js Models
8 Apr, 13

Backbone.js Models

Backbone.js is a JavaScript frameworks for creating MVC-like web applications. Defining Model in Backbone.js Models can be created by extending Backbone.Model A model is basically a Javascript object, i.e. key-value pairs, with some helper functions to handle event...
Grails Environment Setup Ubuntu 12.04
3 Apr, 13

Grails Environment Setup Ubuntu 12.04

Setup JDK in Ubuntu Steps: 1.Extract jdk to opt folder command: sudo unzip jdk1.*.zip -d '/opt' 2.Edit your .bashrc file command: gedit ~/.bashrc 3.Add the following lines at the end of .bashrc export JAVA_HOME=/opt/jdk1.* PATH=.:$PATH:$JAVA_HOME/bin export PATH...
Understanding Flash Scope in Grails
30 Mar, 13

Understanding Flash Scope in Grails

The flash object is a map and one of the more common use cases for flash scope is to store a message that will display when some form of validation fails. Storing a Message in Flash Scope [php]class SampleController{ def index() { flash.message =...