Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Ensure that segments in default_url_options also work with format specified. | José Valim | 2010-01-07 | 2 | -2/+10 |
| | |||||
* | From now on, parameters defined in default_url_options can be absent from ↵ | José Valim | 2010-01-07 | 4 | -65/+93 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 | 10 | -477/+488 |
| | | | | and ActionController up to AbstractController. | ||||
* | Updated the documentation for helpers.label. | José Valim | 2010-01-07 | 1 | -3/+3 |
| | |||||
* | Use helpers.label instead of views.labels. | José Valim | 2010-01-07 | 5 | -8/+8 |
| | |||||
* | errors in ActionView should not be namespaced as well. | José Valim | 2010-01-07 | 3 | -15/+14 |
| | |||||
* | namespace in routes changes both the path and name prefix. | José Valim | 2010-01-06 | 2 | -2/+5 |
| | |||||
* | Allow named routes to be debugged. | José Valim | 2010-01-06 | 1 | -23/+20 |
| | |||||
* | Ruby 1.9.1 requires hash given to foormat to contain symbols. | José Valim | 2010-01-06 | 1 | -1/+1 |
| | |||||
* | Remove CGI.escape in function of Rack::Mount.escape | José Valim | 2010-01-06 | 3 | -8/+8 |
| | |||||
* | redirect in routes takes port into account [#3653 status:resolved] | José Valim | 2010-01-05 | 2 | -0/+13 |
| | |||||
* | All router redirect helper to accept a full URI [#3653 state:resolved] | Joshua Peek | 2010-01-05 | 2 | -7/+25 |
| | |||||
* | assert_template depends on AV::Template monkey patches in action_view/test_case | Joshua Peek | 2010-01-05 | 1 | -0/+9 |
| | |||||
* | NumberHelper#number_to_currency should output html_safe strings so the units ↵ | David Heinemeier Hansson | 2010-01-05 | 1 | -1/+1 |
| | | | | are not escaped | ||||
* | Controller tests should always require view tests since they add behavior ↵ | Jeremy Kemper | 2010-01-04 | 1 | -0/+1 |
| | | | | controllers expect | ||||
* | Trash string coercion rack hacks | Joshua Peek | 2010-01-04 | 4 | -71/+0 |
| | |||||
* | Default middleware stack needs to be available at configuration time | Joshua Peek | 2010-01-04 | 1 | -20/+0 |
| | |||||
* | Autoload AR test case | Joshua Peek | 2010-01-04 | 1 | -1/+0 |
| | |||||
* | Autoload AS test case | Joshua Peek | 2010-01-04 | 4 | -5/+0 |
| | |||||
* | Autoload AC and AV test case classes | Joshua Peek | 2010-01-04 | 5 | -6/+7 |
| | |||||
* | @_formats initialization should be AbstractController::Base. | José Valim | 2010-01-04 | 3 | -7/+6 |
| | |||||
* | Remove deprecated formatted named routes | José Valim | 2010-01-04 | 2 | -26/+0 |
| | |||||
* | adding fix for auto linking to master too | Zach Brock | 2010-01-05 | 2 | -1/+15 |
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> | ||||
* | Merge | David Heinemeier Hansson | 2010-01-03 | 17 | -38/+171 |
|\ | |||||
| * | Use underscore in notification namespaces. | José Valim | 2010-01-04 | 6 | -10/+10 |
| | | |||||
| * | Ensure no notification is on the queue before running notifications related ↵ | José Valim | 2010-01-03 | 4 | -0/+8 |
| | | | | | | | | tests. | ||||
| * | Add notifications to ActionDispatch::ShowExceptions, this can be used as ↵ | José Valim | 2010-01-03 | 2 | -2/+42 |
| | | | | | | | | hooks for plugins like ExceptionNotifier. | ||||
| * | Use namespaces in notifications. | José Valim | 2010-01-03 | 10 | -32/+39 |
| | | |||||
| * | fixed missing or incorrect session data error message | Stefan Penner | 2010-01-02 | 1 | -1/+1 |
| | | |||||
| * | Silence warnings | Mikel Lindsaar | 2010-01-02 | 1 | -0/+1 |
| | | |||||
| * | Do not enforce human_attribute_name as required API. | José Valim | 2010-01-02 | 1 | -3/+6 |
| | | |||||
| * | I18n label helper [#745 status:resolved] | Carsten Gehling | 2010-01-02 | 3 | -3/+77 |
| | | | | | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | | Added that ActionController::Base now does helper :all instead of relying on ↵ | David Heinemeier Hansson | 2010-01-03 | 2 | -0/+4 |
|/ | | | | the default ApplicationController in Rails to do it [DHH] | ||||
* | Make rendering in ActionView happen through _render_template, as the ↵ | José Valim | 2009-12-31 | 1 | -30/+14 |
| | | | | rendering which comes from ActionController. | ||||
* | Expose a _render_partial hook as thhe _render_template one and make use of it. | José Valim | 2009-12-31 | 2 | -11/+15 |
| | |||||
* | ActionController::Logger should include AbstractController::Logger and sort ↵ | José Valim | 2009-12-31 | 3 | -8/+11 |
| | | | | autoloads for easier readability. | ||||
* | controller_path is required by ActionView, so move it up to ↵ | José Valim | 2009-12-31 | 6 | -190/+173 |
| | | | | AbstractController and refactor AbstractController::Layouts. | ||||
* | Fix new year heisenbug | Jeremy Kemper | 2009-12-31 | 1 | -2/+2 |
| | |||||
* | Some railties cleanup: | Carl Lerche | 2009-12-31 | 2 | -1/+1 |
| | | | | | | * Rename <framework>/rails.rb -> <framework>/railtie.rb * Rails::Plugin -> Rails::Railtie * Rails::Plugin::Vendored -> Rails::Plugin | ||||
* | Rename rails.rb -> rails/all.rb and rails/core.rb -> rails.rb | Carl Lerche | 2009-12-31 | 2 | -1/+3 |
| | |||||
* | Add a /rails.rb for each framework for consistency | Carl Lerche | 2009-12-31 | 2 | -0/+3 |
| | |||||
* | Fix controller runtime test | Jeremy Kemper | 2009-12-30 | 1 | -2/+2 |
| | |||||
* | Revert "Add config.action_controller.include behavior to plugins." | Jeremy Kemper | 2009-12-30 | 1 | -2/+1 |
| | | | | | | | | This reverts commit 7e8b7f46bfc086a36db996420fbee93348c5268e. Conflicts: railties/lib/rails/plugin.rb | ||||
* | Partially revert "ActionDispatch should require as little of ActiveSupport ↵ | Jeremy Kemper | 2009-12-30 | 1 | -0/+2 |
| | | | | | | as possible" Removes load path change from commit bb153f42e45160c5ef3593c393db5d3c6857fb70. | ||||
* | Merge commit 'josevalim/arlog' | Jeremy Kemper | 2009-12-30 | 1 | -0/+39 |
|\ | |||||
| * | Kick AR logging back to life and move ControllerRuntime inside ↵ | José Valim | 2009-12-30 | 1 | -0/+39 |
| | | | | | | | | ActiveRecord::Rails. | ||||
* | | ActionDispatch should require as little of ActiveSupport as possible | Carl Lerche | 2009-12-30 | 1 | -3/+1 |
|/ | |||||
* | Use extlib_inheritable_accessor in request_forgery_protection.rb. | Carl Lerche | 2009-12-29 | 1 | -1/+1 |
| | | | For some reason the current class_inheritable_accessor does not play nice with included hooks. class_inheritable_accessor will be revised shortly. | ||||
* | Make sure evalled method knows where it came from | Yehuda Katz | 2009-12-29 | 1 | -2/+2 |
| | |||||
* | Complain if there's no such middleware | Jeremy Kemper | 2009-12-28 | 1 | -2/+3 |
| |