fix rails 3 post formatting
rails 3 api update