Add theme for template and add post for integration test with patch method in rails