aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/polymorphic_routes_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Bump mocha requirement for Ruby 1.9 compat. Remove uses_mocha.Jeremy Kemper2009-02-031-154/+152
|
* Deprecated formatted_polymorphic_urlJeremy Kemper2008-11-301-8/+10
|
* Let polymorphic_path treat an array contains single name as without array ↵Hiroshi Saito2008-11-191-0/+6
| | | | | | [#1386 state:committed] Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
* Merge branch 'master' into testingJeremy Kemper2008-11-151-0/+11
|\
| * Make polymorphic_url compact given array [#1317 state:committed]hiroshi2008-11-141-0/+11
| | | | | | | | Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
* | Move controller assertions from base TestCase to AC:: and AV::TestCaseJeremy Kemper2008-11-071-2/+1
|/
* Allow polymorphic_url helper to take url options. [#880 state:resolved]Tarmo Tänav2008-08-211-2/+20
| | | | | | | | | All *_polymorphic_url, *_polymorphic_path helpers can now accept an options hash which will be passed on to the named route making it possible to generate polymorphic routes with additional url parameters. Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Fixed polymorphic_url to be able to handle singleton resources.Tammer Saleh2008-06-221-0/+33
| | | | | | | Example usage: polymorphic_url([:admin, @user, :blog, @post]) # => admin_user_blog_post_url(@user, @post) [#461 state:resolved]
* Fixed that formatted_polymorphic_route should be able to take the :format as ↵David Heinemeier Hansson2008-04-111-3/+8
| | | | part of a single hash or as the option hash (references #8741)
* Fixed that polymorphic routes would modify the input array (closes #11363) ↵David Heinemeier Hansson2008-03-171-0/+7
| | | | | | [thomas.lee] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9053 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Sort files to test to make load order platform independent. Fix the clash ↵Michael Koziarski2008-02-161-16/+16
| | | | | | this exposes. Closees #11081 [tpope] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8880 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add documentation for polymorphic URL helpers, make API consistent for ↵Michael Koziarski2008-01-271-75/+106
| | | | | | | | | polymorphic_path and polymorphic_url. Closes #10883 [mislav] Closes #8782 [gbuesing] Closes #8720 [gbuesing] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8741 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* require abstract_unit directly since test is in load pathJeremy Kemper2008-01-051-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8564 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* * url_for now accepts a series of symbols representing the namespace of the ↵Tobias Lütke2007-07-191-0/+27
| | | | | | record [Josh Knowles]. Closes #8640 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7197 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Temporary fix for formatted_polymorphic_urls and other polys that have ↵David Heinemeier Hansson2007-06-281-3/+4
| | | | | | additional options (need better testing!) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7152 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* More nested polymorphic url helper fixes. Closes #6432, references #8601.Jeremy Kemper2007-06-071-0/+70
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6960 5ecf4fe2-1ee6-0310-87b1-e25e094e27de