This is an example of how to build rails application that using ajax to load page