XDomain Rails is a gem which simplifies usage of XDomain within Rails application.