This project is archived and is in readonly mode.

#1386 ✓committed
hiroshi

polymorphic_url should treat an array contains single name as without the container

Reported by hiroshi | November 16th, 2008 @ 09:20 AM | in 2.x

After I posted #1317, I realized I missed one more feature I want to be patched.

You may see what I want by an excerpt from my new patch.


  def test_with_array_containing_single_name
  @article.save
  expects(:articles_url)
  polymorphic_url([:articles])
end

That it.

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