aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/activerecord/polymorphic_routes_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Deprecate set_table_name in favour of self.table_name= or defining your own ↵Jon Leighton2011-11-291-8/+8
| | | | method.
* Rely on a public contract between railties instead of accessing railtie ↵José Valim2011-11-231-4/+2
| | | | methods directly.
* provide a more explicit message when using url_for with nilDamien Mathieu2011-07-021-0/+8
| | | This fixes the problem of having a non-explicit message when the :location option is not provided in respond_with.
* Removed deprecated RouteSet API, still many tests failPiotr Sarnacki2010-09-051-9/+9
|
* Use new ActiveModel::Naming.route_key in polymorphic_routesPiotr Sarnacki2010-09-031-1/+1
|
* Add possibility to explicitly call engine's routes through ↵Piotr Sarnacki2010-09-031-0/+8
| | | | polymorphic_routes, for example: polymorphic_url([blog, @post])
* Added more tests for polymorphic_url with namespaced models and implemented ↵Piotr Sarnacki2010-09-031-0/+56
| | | | missing use cases
* Deprecate the old router DSL. Since it is still used intensively across ↵José Valim2010-06-281-15/+15
| | | | ActionPack test suite, patches that translates Rails internal tests to the new router DSL are welcome (note though that a few tests shouldn't be translated since they are testing exactly the old mapper API, like the ones in actionpack/test/controller/resource_test.rb and actionpack/test/controller/routing_test.rb)
* Make polymorphic_url and scaffolding work with uncountable resources [#3930 ↵Andrew White2010-06-201-0/+1
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Consistent routing languageJoshua Peek2010-03-301-82/+82
|
* Stop setting UrlFor using SharedTestHelpersCarlhuda2010-02-261-1/+1
|
* Rename named_url_helpers to url_helpers and url_helpers to url_forCarlhuda2010-02-261-3/+3
|
* Fix all of AP's tests with the non global routerCarlhuda2010-02-251-3/+3
|
* Use ActionDispatch::Routing everywhereMartin Schürrer2010-02-211-3/+3
|
* From now on, parameters defined in default_url_options can be absent from ↵José Valim2010-01-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | named routes. This allows the following setup to work: # app/controllers/application_controller.rb class ApplicationController def default_url_options(options=nil) { :locale => I18n.locale } end end # From your views and controllers: I18n.locale #=> :en users_url #=> "/en/users" users_url(:pl) #=> "/pl/users" user_url(1) #=> "/en/users/1" user_url(:pl, 1) #=> "/pl/users/1" user_url(1, :locale => :pl) #=> "/pl/users/1" If you provide all expected parameters, it still works as previously. But if any parameter is missing, it tries to assign all possible ones with the hash returned in default_url_options or the one passed straight to the named route method. Beware that default_url_options in ApplicationController is not shared with ActionMailer, so you are required to always give the locale in your email views.
* Make polymorphic_url work with symbols again and refactor it [#1384 ↵José Valim2009-10-281-8/+6
| | | | | | status:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Polymorphic routes generates collection URL from model class [#1089 ↵Niklas Holmgren2009-08-081-0/+31
| | | | | | | state:resolved] Signed-off-by: Dan Pickett <dpickett@enlightsolutions.com> Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Add destroyed? to ActiveRecord, include tests for polymorphic urls for ↵José Valim2009-08-071-1/+23
| | | | destroyed objects and refactor mime responds tests and documentation.
* Fix polymorphic_path doesn't modify options hash [#2099 state:resolved]=?utf-8?q?Mislav=20Marohni=C4=87?=2009-06-211-3/+6
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Merge commit 'origin/master'Yehuda Katz + Carl Lerche2009-05-141-0/+1
| | | | | | Conflicts: actionpack/lib/action_controller/abstract/base.rb actionpack/lib/action_controller/routing.rb
* Remove excess mocking from polymorphic_url tests [#2330 state:resolved]Mike Gunderloy2009-04-211-0/+394
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>