This project is archived and is in readonly mode.

#1317 ✓committed
hiroshi

polymorphic_url should compact given array

Reported by hiroshi | November 3rd, 2008 @ 05:35 AM | in 2.x

For example, there is an usage of polymorphic_path like,


 polymorphic_path([@project, @filter, @issue])

However, sometime @filter will be nil, but I don't get error such a "NoMethodError: undefined method project_nil_class_issue_url'". I would rather get a same result of project_issue_url.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Attachments

Referenced by

Pages