Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Changeset [bb6e8eea5a8190aaab67da0a7efedb3bb3d9fccb] by Tammer Saleh

Revision bb6e8eea5a8190aaab67da0a7efedb3bb3d9fccb, committed by Repository · June 23rd, 2008 @ 02:58 AM

Fixed polymorphic_url to be able to handle singleton resources.

Example usage:

polymorphic_url([:admin, @user, :blog, @post]) # => admin_user_blog_post_url(@user, @post)

[#461 state:resolved]

http://github.com/rails/rails/co...

3 changed files

  • M actionpack/CHANGELOG
  • M actionpack/lib/action_controller/polymorphic_routes.rb
  • M actionpack/test/controller/polymorphic_routes_test.rb