Fix polymorphic_path. There seems to be a breaking change in Rails 4.0.8.