mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
f1a097733a
The assertion will ensure that the behavior doesn't regress.
assert_equal "/projects", polymorphic_path("projects")
Remove FIXME related to polymorphic_url behavior.
polymorphic_url with Symbol or String works equally.
Example:
default_url_options[:host] = "example.com"
polymorphic_url(:projects) # => "http://example.com/projects"
polymorphic_url("projects") # => "http://example.com/projects"
Related to
|
||
---|---|---|
.. | ||
controller_runtime_test.rb | ||
debug_helper_test.rb | ||
form_helper_activerecord_test.rb | ||
polymorphic_routes_test.rb | ||
relation_cache_test.rb | ||
render_partial_with_record_identification_test.rb |