Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fixes namespaced routes [#3673 status:resolved] | Joao Carlos | 2010-01-10 | 1 | -3/+3 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Fixed that much of DateHelper wouldn't return html_safe? strings [DHH] | David Heinemeier Hansson | 2010-01-08 | 1 | -0/+22 |
| | |||||
* | 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 | 2 | -44/+37 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 | 3 | -266/+272 |
| | | | | and ActionController up to AbstractController. | ||||
* | Use helpers.label instead of views.labels. | José Valim | 2010-01-07 | 2 | -5/+5 |
| | |||||
* | errors in ActionView should not be namespaced as well. | José Valim | 2010-01-07 | 1 | -6/+6 |
| | |||||
* | namespace in routes changes both the path and name prefix. | José Valim | 2010-01-06 | 1 | -1/+4 |
| | |||||
* | redirect in routes takes port into account [#3653 status:resolved] | José Valim | 2010-01-05 | 1 | -0/+12 |
| | |||||
* | All router redirect helper to accept a full URI [#3653 state:resolved] | Joshua Peek | 2010-01-05 | 1 | -2/+12 |
| | |||||
* | Trash string coercion rack hacks | Joshua Peek | 2010-01-04 | 2 | -41/+0 |
| | |||||
* | Autoload AR test case | Joshua Peek | 2010-01-04 | 1 | -1/+0 |
| | |||||
* | Autoload AS test case | Joshua Peek | 2010-01-04 | 1 | -1/+0 |
| | |||||
* | Autoload AC and AV test case classes | Joshua Peek | 2010-01-04 | 1 | -1/+0 |
| | |||||
* | Remove deprecated formatted named routes | José Valim | 2010-01-04 | 1 | -18/+0 |
| | |||||
* | adding fix for auto linking to master too | Zach Brock | 2010-01-05 | 1 | -0/+14 |
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> | ||||
* | 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 | 1 | -0/+20 |
| | | | | hooks for plugins like ExceptionNotifier. | ||||
* | Use namespaces in notifications. | José Valim | 2010-01-03 | 4 | -14/+12 |
| | |||||
* | I18n label helper [#745 status:resolved] | Carsten Gehling | 2010-01-02 | 2 | -0/+41 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Fix new year heisenbug | Jeremy Kemper | 2009-12-31 | 1 | -2/+2 |
| | |||||
* | Fix controller runtime test | Jeremy Kemper | 2009-12-30 | 1 | -2/+2 |
| | |||||
* | Kick AR logging back to life and move ControllerRuntime inside ↵ | José Valim | 2009-12-30 | 1 | -0/+39 |
| | | | | ActiveRecord::Rails. | ||||
* | Merge remote branch 'jose/perf' | Yehuda Katz | 2009-12-27 | 7 | -93/+72 |
|\ | |||||
| * | Remove ActionView inline logging to ActiveSupport::Notifications and create ↵ | José Valim | 2009-12-26 | 7 | -93/+72 |
| | | | | | | | | 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. | ||||
* | | Added shorthand for match 'products/overview' that expands to match ↵ | David Heinemeier Hansson | 2009-12-27 | 1 | -6/+16 |
| | | | | | | | | 'products/overview', :to => 'products#overview', :as => 'products_overview' | ||||
* | | Expect Rack 1.1 | Joshua Peek | 2009-12-26 | 1 | -1/+1 |
|/ | |||||
* | Fix tests | David Heinemeier Hansson | 2009-12-25 | 1 | -2/+2 |
| | |||||
* | Merge | David Heinemeier Hansson | 2009-12-24 | 2 | -3/+12 |
|\ | |||||
| * | Allow named_routes to be used with root, and with new DSL short-form. | Sam Ruby | 2009-12-23 | 1 | -0/+9 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | The real use case it to make all of the following act the same: root 'store#index', :as => 'store' match '/' => 'store#index', :as => 'store' match '/', :to => 'store#index', :as => 'store' The test case provided deviates from this in order to demonstrate all three forms in a single set of test routes. Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
| * | Routing: fix that route shorthand shouldn't ignore other options. Raise if ↵ | Jeremy Kemper | 2009-12-23 | 1 | -2/+4 |
| | | | | | | | | :as option is given to root method since its name is always 'root' | ||||
| * | Fix bare string Rack response bodies | Jeremy Kemper | 2009-12-23 | 1 | -2/+2 |
| | | |||||
* | | Extract Mapping class from monster match method | David Heinemeier Hansson | 2009-12-24 | 1 | -1/+12 |
|/ | |||||
* | AD::StatusCodes support is now part of rack | Joshua Peek | 2009-12-22 | 1 | -2/+2 |
| | |||||
* | Add test for root | David Heinemeier Hansson | 2009-12-21 | 1 | -0/+9 |
| | |||||
* | 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 |
| | | |||||
* | | Merge branch 'master' of github.com:rails/rails | David Heinemeier Hansson | 2009-12-21 | 6 | -8/+39 |
|\| | |||||
| * | Its now possible to use match 'stuff' => 'what#stuff' instead of using the ↵ | David Heinemeier Hansson | 2009-12-20 | 1 | -3/+13 |
| | | | | | | | | :to for simple routes | ||||
| * | Rename the RenderingController module to just plain Rendering | David Heinemeier Hansson | 2009-12-20 | 5 | -5/+5 |
| | | |||||
| * | :to => redirect() can take a String using 1.9-style interpolation or proc ↵ | Yehuda Katz | 2009-12-20 | 1 | -0/+21 |
| | | | | | | | | that takes the path parameters as a Hash | ||||
* | | Added cookies.permanent, cookies.signed, and cookies.permanent.signed ↵ | David Heinemeier Hansson | 2009-12-20 | 1 | -0/+35 |
|/ | | | | accessor for common cookie actions [DHH] | ||||
* | Pending tests for AD Response | Joshua Peek | 2009-12-17 | 1 | -0/+113 |
| | |||||
* | Don't need response prepare! | Joshua Peek | 2009-12-17 | 1 | -8/+0 |
| | |||||
* | 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] | ||||
* | Fully expand relative rails framework paths and make sure we aren't | Joshua Peek | 2009-12-16 | 1 | -8/+7 |
| | | | | adding any to the load path more than once. | ||||
* | 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 |
| | |||||
* | Hush loading AR unless it fails | Joshua Peek | 2009-12-14 | 1 | -6/+2 |
| | |||||
* | TestProcess belongs in AD | Joshua Peek | 2009-12-12 | 2 | -5/+5 |
| |