aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/resources.rb
Commit message (Collapse)AuthorAgeFilesLines
* Remove deprecated named routes [pixeltrix]Tobias Lütke2007-09-061-13/+11
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7415 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Allow you to set custom :conditions on resource routes. [Rick]Rick Olson2007-07-251-10/+17
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7234 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Refactored in use of extract_options! (closes #9079) [josh]David Heinemeier Hansson2007-07-241-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7220 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Prefix nested resource named routes with their action name, e.g. ↵Jeremy Kemper2007-06-271-8/+13
| | | | | | new_group_user_path(@group) instead of group_new_user_path(@group). The old nested action named route is deprecated in Rails 1.2.4. Closes #8558. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7138 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Docfix (closes #8321)David Heinemeier Hansson2007-06-231-4/+15
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7100 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix typo in resources documentation. Closes #8607 [yon]Jeremy Kemper2007-06-081-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6971 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Routing: map.resource :logo routes to LogosController so the controller may ↵Jeremy Kemper2007-06-011-7/+5
| | | | | | be reused for multiple nestings or namespaces. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6922 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Wordsmith resources documentation. Closes #8484.Jeremy Kemper2007-05-271-38/+63
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6865 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Strip junk whitespace from [6806].Jeremy Kemper2007-05-221-52/+52
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6807 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Resource namespaces are inherited by their has_many subresources. Closes #8280.Jeremy Kemper2007-05-221-2/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6806 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Allow routes to be declared off namespacesTobias Lütke2007-05-191-20/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6783 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Allow nested namespaces in routingTobias Lütke2007-05-171-1/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6748 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add brief introduction to REST to the resources documentation. Closes #8100. ↵Marcel Molina2007-05-061-0/+38
| | | | | | [fearoffish] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6681 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added map.namespace to deal with the common situation of admin sections and ↵David Heinemeier Hansson2007-04-271-1/+17
| | | | | | the like [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6594 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Name prefix should nest like path prefixDavid Heinemeier Hansson2007-04-271-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6592 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Actually make the name_prefix work like the previous checkin said it wouldDavid Heinemeier Hansson2007-04-271-4/+9
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6590 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added :has_many and :has_one for declaring plural and singular resources ↵David Heinemeier Hansson2007-04-261-5/+19
| | | | | | beneath the current [DHH] Added :name_prefix as standard for nested resources [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6588 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Dropped the use of ; as a separator of non-crud actions on resources and ↵David Heinemeier Hansson2007-03-281-11/+11
| | | | | | went back to the vanilla slash. It was a neat idea, but lots of the non-crud actions turned out not to be RPC (as the ; was primarily intended to discourage), but legitimate sub-resources, like /parties/recent, which didn't deserve the uglification of /parties;recent. Further more, the semicolon caused issues with caching and HTTP authentication in Safari. Just Not Worth It [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6485 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Allow routing requirements on map.resource(s) (closes #7633) [quixoten]David Heinemeier Hansson2007-02-251-8/+15
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6232 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* fix form_for example in ActionController::Resources documentation. Closes ↵Rick Olson2007-02-041-1/+1
| | | | | | #7362 [gnarg], Added enhanced docs to routing assertions. Closes #7359 [Rob Sanheim], improve error message for Routing for named routes. Closes #7346 [Rob Sanheim] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6113 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Resource member routes require :id, eliminating the ambiguous overlap with ↵Jeremy Kemper2007-01-281-37/+45
| | | | | | collection routes. Closes #7229. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6062 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* add some more detail on nested resource docs [Rick]Rick Olson2007-01-101-1/+9
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5877 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix bug where nested resources ignore a parent singleton parent's path ↵Rick Olson2007-01-081-1/+1
| | | | | | prefix. Closes #6940 [Dan Kubb] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5872 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Singleton resources: POST /singleton => create, GET /singleton/new => newJeremy Kemper2006-12-221-24/+31
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5772 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* fix docs for singleton resourcesRick Olson2006-12-071-4/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5702 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add singleton resources. [Rick Olson]Rick Olson2006-12-071-8/+96
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5701 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make sure map.resources(:things, :new => { :new => :any }) correctly sets ↵Jamis Buck2006-09-261-5/+8
| | | | | | /things/new to be accessible by any method rather than creating another resource at /things/new;new git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5195 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* remove implicit primary actions - more pain than gain. test collection ↵Jeremy Kemper2006-09-141-9/+0
| | | | | | actions for other http methods. strip whitespace. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5111 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make sure that formatted routes for all verbs are created. Still needs to ↵David Heinemeier Hansson2006-09-131-15/+19
| | | | | | resolve two failing tests after this refactoring [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5096 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update routing documentation. Closes #6017 [Nathan Witmer]Rick Olson2006-09-021-13/+47
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4908 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* map.resources docs typo closes #5895Jeremy Kemper2006-08-241-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4812 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* add Rdocs to map.resourcesRick Olson2006-08-061-0/+104
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4689 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove duplicate routes from mapped resources (closes #5712) ↵David Heinemeier Hansson2006-08-051-3/+4
| | | | | | [eigentone@gmail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4669 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Nested resource testing.Jeremy Kemper2006-08-011-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4643 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Nesting map.resourcesJeremy Kemper2006-08-011-4/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4642 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix bug when passing multiple options to SimplyRestful, like :new => { ↵Rick Olson2006-07-311-19/+6
| | | | | | :preview => :get, :draft => :get }. [Rick Olson, Josh Susser, Lars Pind] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4641 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Dup the options passed to map.resources so that multiple resources get the ↵Rick Olson2006-07-311-1/+1
| | | | | | same options. [Rick Olson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4639 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed the new_#{resource}_url route and added named route tests for Simply ↵Rick Olson2006-07-311-1/+1
| | | | | | Restful. [Rick Olson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4638 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added map.resources from the Simply Restful plugin (backwards incompatible ↵David Heinemeier Hansson2006-07-311-0/+170
with the plugin!) [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4637 5ecf4fe2-1ee6-0310-87b1-e25e094e27de