generates urls correctly under rails 4
Merge pull request #15 from dleavitt/helper_url_generation

generates urls correctly under rails 4