Update rails
Update all matches in test to use :get and :post, and change 'root' to 'match' as rails 4 roots don't accept POST
Integrate same test cases running for both Rails 3 and 4
Added example for Rails 4