This project is archived and is in readonly mode.

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
- 
         Repository November 14th, 2008 @ 11:08 AM- State changed from new to committed
 (from [94d6716324126028b89dde886f160474049b1b0c]) Make polymorphic_url compact given array [#1317 state:committed] Signed-off-by: David Heinemeier Hansson david@loudthinking.com http://github.com/rails/rails/co... 
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
- 
         1317 
          polymorphic_url should compact given array
        (from [94d6716324126028b89dde886f160474049b1b0c]) Make
po... 1317 
          polymorphic_url should compact given array
        (from [94d6716324126028b89dde886f160474049b1b0c]) Make
po...
- 
         1384 
          polymorphic_url should allow a symbol in place of a record
        After #1317 was committed I found it necessary to send
an... 1384 
          polymorphic_url should allow a symbol in place of a record
        After #1317 was committed I found it necessary to send
an...
- 
         1386 
          polymorphic_url should treat an array contains single name as without the container
        After I posted #1317, I realized I missed one more featur... 1386 
          polymorphic_url should treat an array contains single name as without the container
        After I posted #1317, I realized I missed one more featur...
- 
         1384 
          polymorphic_url should allow a symbol in place of a record
        Related to #1317 1384 
          polymorphic_url should allow a symbol in place of a record
        Related to #1317
 hiroshi
      hiroshi
 Repository
      Repository