Adding old rails example for using ajax login.: