Update index.html.erb

Add type-POST to ajax