Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Raise an error if respond_with is invoked and no format is declared. | José Valim | 2010-01-10 | 1 | -68/+62 | |
| | ||||||
* | Ensure that segments in default_url_options also work with format specified. | José Valim | 2010-01-07 | 1 | -0/+8 | |
| | ||||||
* | From now on, parameters defined in default_url_options can be absent from ↵ | José Valim | 2010-01-07 | 1 | -43/+36 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. | |||||
* | Remove duplicated url_for code and move methods shared between ActionMailer ↵ | José Valim | 2010-01-07 | 2 | -266/+0 | |
| | | | | and ActionController up to AbstractController. | |||||
* | Remove deprecated formatted named routes | José Valim | 2010-01-04 | 1 | -18/+0 | |
| | ||||||
* | Ensure no notification is on the queue before running notifications related ↵ | José Valim | 2010-01-03 | 2 | -0/+3 | |
| | | | | tests. | |||||
* | Use namespaces in notifications. | José Valim | 2010-01-03 | 2 | -9/+7 | |
| | ||||||
* | Fix new year heisenbug | Jeremy Kemper | 2009-12-31 | 1 | -2/+2 | |
| | ||||||
* | Remove ActionView inline logging to ActiveSupport::Notifications and create ↵ | José Valim | 2009-12-26 | 6 | -93/+49 | |
| | | | | ActionController::Base#log_event, so everything can be logged within one listener. Also expose log_process_action as a hook for different modules to include their own information during the action processing. This allow ActiveRecord to hook and any other ORM. Finally, this commit changes 'Processing' and 'Rendering' in logs to 'Processed' and 'Rendered' because at the point it's logged, everying already happened. | |||||
* | AD::StatusCodes support is now part of rack | Joshua Peek | 2009-12-22 | 1 | -2/+2 | |
| | ||||||
* | Merge branch 'master' of github.com:rails/rails | David Heinemeier Hansson | 2009-12-21 | 1 | -12/+12 | |
|\ | ||||||
| * | reset_session needs to be a real method so flash can override it | Joshua Peek | 2009-12-21 | 1 | -12/+12 | |
| | | ||||||
* | | Added cookies.permanent, cookies.signed, and cookies.permanent.signed ↵ | David Heinemeier Hansson | 2009-12-20 | 1 | -0/+35 | |
|/ | | | | accessor for common cookie actions [DHH] | |||||
* | Added alert/notice from 2-3-stable and refactored redirect_to into just ↵ | David Heinemeier Hansson | 2009-12-17 | 1 | -1/+28 | |
| | | | | living in Redirector [DHH] | |||||
* | Move route reloading into railties | Joshua Peek | 2009-12-14 | 1 | -13/+0 | |
| | ||||||
* | Remove route loading tests since it should be tested by railties | Joshua Peek | 2009-12-14 | 1 | -72/+0 | |
| | ||||||
* | TestProcess belongs in AD | Joshua Peek | 2009-12-12 | 1 | -4/+4 | |
| | ||||||
* | Remove fancy method not allowed resource exceptions since they are | Joshua Peek | 2009-12-11 | 2 | -10/+7 | |
| | | | | too much of a hack | |||||
* | Kill RouteSet#recognize | Joshua Peek | 2009-12-10 | 1 | -126/+68 | |
| | ||||||
* | Merge branch 'master' of github.com:rails/rails | Yehuda Katz | 2009-12-10 | 11 | -62/+64 | |
|\ | ||||||
| * | Simpler RenderOption API -- removes the need for registering the types and ↵ | Carlhuda | 2009-12-09 | 1 | -0/+14 | |
| | | | | | | | | extending a module | |||||
| * | More test porting | Joshua Peek | 2009-12-08 | 3 | -10/+9 | |
| | | ||||||
| * | Use new routing dsl in tests | Joshua Peek | 2009-12-08 | 9 | -52/+41 | |
| | | ||||||
* | | Responder redirects to resource if destroy fails. | José Valim | 2009-12-07 | 1 | -8/+34 | |
|/ | | | | Signed-off-by: Yehuda Katz <wycats@Yehuda-Katz.local> | |||||
* | Deprecate recalling generation params when the defaults are nil | Joshua Peek | 2009-12-06 | 1 | -3/+1 | |
| | ||||||
* | Update rackmount to fix some pending tests | Joshua Peek | 2009-12-05 | 1 | -13/+9 | |
| | ||||||
* | Reorganize autoloads: | Carlhuda | 2009-12-02 | 2 | -2/+2 | |
| | | | | | | | | | | | | | | | | | | | | | * A new module (ActiveSupport::Autoload) is provide that extends autoloading with new behavior. * All autoloads in modules that have extended ActiveSupport::Autoload will be eagerly required in threadsafe environments * Autoloads can optionally leave off the path if the path is the same as full_constant_name.underscore * It is possible to specify that a group of autoloads live under an additional path. For instance, all of ActionDispatch's middlewares are ActionDispatch::MiddlewareName, but they live under "action_dispatch/middlewares/middleware_name" * It is possible to specify that a group of autoloads are all found at the same path. For instance, a number of exceptions might all be declared there. * One consequence of this is that testing-related constants are not autoloaded. To get the testing helpers for a given component, require "component_name/test_case". For instance, "action_controller/test_case". * test_help.rb, which is automatically required by a Rails application's test helper, requires the test_case.rb for all active components, so this change will not be disruptive in existing or new applications. | |||||
* | Stop escaping "[]" in query string | Joshua Peek | 2009-12-02 | 1 | -3/+3 | |
| | ||||||
* | Ensure Cache-Control max-age is an integer | Jeremy Kemper | 2009-12-02 | 1 | -1/+1 | |
| | ||||||
* | Make recognize try to constantize controller to see if it exists | Joshua Peek | 2009-12-01 | 1 | -2/+0 | |
| | ||||||
* | Merge branch 'master' of github.com:rails/rails | Joshua Peek | 2009-12-01 | 2 | -0/+18 | |
|\ | ||||||
| * | Fix caching test to ensure notifications are all delivered | Jeremy Kemper | 2009-12-01 | 1 | -0/+1 | |
| | | ||||||
| * | Allow ActionController::Responder to have a common entry point for all formats. | José Valim | 2009-12-01 | 1 | -0/+17 | |
| | | | | | | | | Signed-off-by: Yehuda Katz <wycats@Yehuda-Katz.local> | |||||
* | | Fix generating params with optional defaults [#3404 state:resolved] | Joshua Peek | 2009-12-01 | 1 | -3/+1 | |
|/ | ||||||
* | Notifications: extract central Notifier, cordon off the internal Fanout ↵ | Jeremy Kemper | 2009-11-28 | 1 | -1/+3 | |
| | | | | implementation, and segregate instrumentation concerns | |||||
* | Privatize Routing.possible_controllers and fix brittle url helper | Joshua Peek | 2009-11-23 | 1 | -24/+0 | |
| | | | | controller test loading. | |||||
* | Remove inflection reloads routes test | Joshua Peek | 2009-11-23 | 1 | -7/+0 | |
| | ||||||
* | Pending test now passing | Jeremy Kemper | 2009-11-23 | 1 | -8/+6 | |
| | ||||||
* | Extended and case insensitive regexp routes aren't that important. | Joshua Peek | 2009-11-19 | 1 | -15/+24 | |
| | | | | Mark them as pending till I figure it out. | |||||
* | Fix test bleed | Jeremy Kemper | 2009-11-18 | 1 | -1/+1 | |
| | ||||||
* | Extract form_authenticity_param instance method so it's overridable in ↵ | Jeremy Kemper | 2009-11-17 | 1 | -1/+19 | |
| | | | | subclasses | |||||
* | Split mime responder into smaller chunks and allow action to be configured. | José Valim | 2009-11-13 | 1 | -1/+21 | |
| | | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | |||||
* | test-unit 2 compat: assert_raise doesn't support regexp second arg to match ↵ | Jeremy Kemper | 2009-11-10 | 1 | -1/+1 | |
| | | | | exception message | |||||
* | Add pending test for generating routes with optional params that recall last | Joshua Peek | 2009-11-09 | 1 | -0/+36 | |
| | | | | request | |||||
* | Add pending test for route generation with default param | Joshua Peek | 2009-11-09 | 1 | -0/+16 | |
| | ||||||
* | Symbol#to_proc is not needed for Ruby >= 1.8.7 | Xavier Noria | 2009-11-09 | 1 | -1/+0 | |
| | ||||||
* | Ruby 1.9: don't assume params are US-ASCII. Hands off the encoding. | Jeremy Kemper | 2009-11-04 | 1 | -0/+1 | |
| | ||||||
* | Ruby 1.9: resolve constant lookup issues | Jeremy Kemper | 2009-11-04 | 4 | -11/+11 | |
| | ||||||
* | Ruby 1.9: more constant lookup badness :( | Jeremy Kemper | 2009-11-04 | 1 | -1/+1 | |
| | ||||||
* | Move some of helper tests to AbstractController. | José Valim | 2009-11-01 | 1 | -34/+0 | |
| |