Fix master for rails 3.2 by trailing_slash