aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/routing/url_for.rb
Commit message (Collapse)AuthorAgeFilesLines
...
* Use env['action_dispatch.routes'] to determine if we should generate prefix ↵Piotr Sarnacki2010-09-031-1/+7
| | | | | | | | | | or not. This technique is here to allow using routes from Engine in Application and vice versa. When using Engine routes inside Application it should generate prefix based on mount point. When using Engine routes inside Engine it should use env['SCRIPT_NAME']. In any other case it should generate prefix as env should not be even available.
* Expanded routing documentation with current best practicesJoost Baaij2010-08-291-5/+4
|
* edit pass to apply API guideline wrt the use of "# =>" in example codeXavier Noria2010-07-301-1/+1
|
* options could be of any kind of Hash (Hash, HashWithIndifferentAccess or ↵Santiago Pastorino2010-07-211-1/+1
| | | | OrderedHash) this way we keep the properties of the options passed as an argument
* Moved PolymorphicRoutes to ActionDispatch::RoutingPiotr Sarnacki2010-07-201-0/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Unify routes naming by renaming router to routesPiotr Sarnacki2010-07-021-1/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Make ActionDispatch url_for use HWIA symbolize_keysSantiago Pastorino2010-04-221-1/+1
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Ensure that url_for uses symbolized keys in the controller. [#4391]J Smith2010-04-221-1/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Update various documentation examples to use new routing DSLAndrew White2010-04-041-1/+1
|
* ActionController::Resources has gone awayAndrew White2010-03-311-2/+1
|
* Fix a mistake in the documentation (ht: Evgeniy Dolzhenko) [#4217 ↵wycats2010-03-271-1/+1
| | | | state:resolved]
* skip_relative_url_root url_for option is deadJoshua Peek2010-03-091-2/+0
|
* RouteSet#rewrite => url_forJoshua Peek2010-03-091-1/+1
|
* Move AC::UrlRewriter onto route setJoshua Peek2010-03-091-1/+1
|
* Reinstate default_url_options and remove url_options= writerJeremy Kemper2010-03-081-47/+19
|
* Now that class_attribute creates an instance method, remove it to avoid ↵wycats2010-03-081-1/+2
| | | | deprecation warnings ;)
* Tweak default_url_options deprecation warningJeremy Kemper2010-03-051-2/+2
|
* Tweak out url_for uses :script_name and add some testsCarl Lerche2010-03-041-4/+5
|
* Get rid of relative_url_path in favor of respecting SCRIPT_NAME. Also added ↵Carlhuda2010-03-041-1/+5
| | | | a way to specify a default SCRIPT_NAME when generating URLs out of the context of a request.
* The instance_reader of default_url_options needs to not exist.Yehuda Katz2010-02-271-0/+1
|
* Change the API for setting global options for #url_for to self.url_options = ↵Carlhuda2010-02-261-11/+23
| | | | | | { ... } This attr_accessor can be set in a before filter or in the action itself. Overwriting default_url_options still works but will output a deprecation notice.
* Remove the :use_defaults check in UrlFor#merge optionsCarlhuda2010-02-261-1/+1
|
* Continued effort to deglobalize the routerCarlhuda2010-02-251-24/+7
|
* WIP: Remove the global routerCarlhuda2010-02-251-0/+167