aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
Commit message (Collapse)AuthorAgeFilesLines
* Do not raise an exception if an invalid route was generated automatically.José Valim2011-12-161-0/+1
|
* ShowExceptions should understand X-Cascade responses from exceptions app.José Valim2011-12-161-0/+11
|
* Improve the specs on exceptions app.José Valim2011-12-161-1/+14
|
* Extract the rendering of public exceptions pages into a Rack app.José Valim2011-12-163-11/+3
|
* Get rid of the close checks since we cannot reliably close the session anyway.José Valim2011-12-162-137/+1
|
* Warning removed "warning: (...) interpreted as grouped expression"Arun Agrawal2011-12-161-1/+1
|
* it's -> itsXavier Noria2011-12-151-1/+1
|
* Fix diagnostics page for routing errors.José Valim2011-12-151-3/+10
|
* fix separator insertion in date_select helperSergey Nartimov2011-12-141-0/+19
|
* Close the response body on cascade pass, closes #3975.José Valim2011-12-141-3/+22
|
* Fix url_for options[:subdomain] to allow objects as valueschoonkeat2011-12-141-0/+8
| | | | * e.g. blog_url(subdomain: current_user) instead of blog_url(subdomain: current_user.to_param)
* Clean up details keys before some tests to expire the cache.José Valim2011-12-142-7/+5
|
* log exception backtrace when all backtrace lines silencedSergey Nartimov2011-12-131-0/+13
|
* Fix failing AP tests.José Valim2011-12-131-1/+1
|
* use Array#join so that file encoding doesn't impact returned string.Aaron Patterson2011-12-121-0/+9
| | | | Fixes #3957
* Speed up development by only reloading classes if dependencies files changed.José Valim2011-12-121-0/+9
| | | | | | | | This can be turned off by setting `config.reload_classes_only_on_change` to false. Extensions like Active Record should add their respective files like db/schema.rb and db/structure.sql to `config.watchable_files` if they want their changes to affect classes reloading. Thanks to https://github.com/paneq/active_reload and Pastorino for the inspiration. <3
* Allow reloader to be configured.José Valim2011-12-121-0/+13
|
* Added :use_two_digit_numbers option [Lennart Fridén & Kim Persson]Lennart Fridén2011-12-111-1/+18
| | | | | | | | | | Added use_two_digit_numbers select_tag option for displaying months and days with leading zeros without affecting the values (useful for e.g. ISO-style dates, 2011-08-01). Signed-off-by: José Valim <jose.valim@gmail.com> Conflicts: actionpack/CHANGELOG.md
* Add button_tag support to ActionView::Helpers::FormBuilder.Will Farrington2011-12-111-1/+3
| | | | | | | | | | This support is near-identical to the existing submit_tag support. Example: <%= form_for @post do |f| %> <%= f.button %> <% end %>
* only load converter if the encodings are differentAaron Patterson2011-12-091-1/+1
|
* Deprecate implicit layout lookup in favor of inheriting the _layout config.José Valim2011-12-091-2/+2
|
* load the encoding converter to work around [ruby-core:41556] when switching ↵Aaron Patterson2011-12-081-0/+1
| | | | encodings
* Fix another regression related to the layout optimization.José Valim2011-12-081-1/+25
|
* Fix a regression and also fix broken test.José Valim2011-12-081-5/+5
|
* Fix warning for params_wrapper_test.kennyj2011-12-081-1/+1
|
* ParamsWrapper only wrap the accessible attributes when they were setJean-Francois Turcot2011-12-071-1/+28
|
* Merge pull request #3884 from sikachu/master-fix_layoutJosé Valim2011-12-073-2/+66
|\ | | | | Allow layout fallback when using `layout` method
| * Allow layout fallback when using `layout` methodPrem Sichanugrist2011-12-061-1/+49
| | | | | | | | | | | | | | | | | | | | | | | | Rails will now use your default layout (such as "layouts/application") when you specify a layout with `:only` and `:except` condition, and those conditions fail. For example, consider this snippet: class CarsController layout 'single_car', :only => :show end Rails will use 'layouts/single_car' when a request comes in `:show` action, and use 'layouts/application' (or 'layouts/cars', if exists) when a request comes in for any other actions.
| * Fix bug in assert_template when using only `:layout` optionPrem Sichanugrist2011-12-062-1/+17
| | | | | | | | | | | | | | | | | | | | Currently if you're do this: assert_template :layout => "foo" Regardless of what layout you were using, the test will always pass. This was broken since the introduction of :layout option in [d9375f3f]. We have a lot of test cases in actionpack/test/controller/layout_test.rb that use this feature. This will make sure that those test cases are not true negative.
* | Use default charset when we read content type without charset.kennyj2011-12-071-0/+11
|/
* Merge pull request #3428 from adrianpike/asset_path_conflictsSantiago Pastorino2011-12-061-0/+57
|\ | | | | Issue #3427 - asset_path_conflicts
| * Let's do the same trick for asset_path that we do for ↵Adrian Pike2011-12-051-0/+57
| | | | | | | | | | | | [image,javascript,stylesheet]_path to avoid namespace conflicts on named routes. Closes #3427
* | Allowing string as url argument for expire_actionThomas von Deyen2011-12-061-0/+20
|/
* Merge pull request #3861 from andyjeffries/masterJosé Valim2011-12-051-2/+2
|\ | | | | Named Routes shouldn't override existing ones (currently route recognition goes with the earliest match, named routes use the latest match)
| * Named Routes shouldn't override existing ones (currently route recognition ↵Andy Jeffries2011-12-051-2/+2
| | | | | | | | goes with the earliest match, named routes use the latest match)
* | use classify in ParamsWrapper to derive model name from controller namelest2011-12-051-0/+35
|/
* Fix for redirect_to to respect urls with a network path reference like ↵Overbryd2011-12-051-0/+10
| | | | "//asset.host.com/resources/1235" see issue #3856
* form_for with +:as+ option uses "action_as" as css class and idVasiliy Ermolovich2011-12-041-11/+11
|
* Fix failing cascade exception.José Valim2011-12-031-0/+9
|
* Merge branch 'exceptions' with the following features:José Valim2011-12-014-90/+144
|\ | | | | | | | | | | | | | | | | * A Railtie API for registering new exceptions and their respective status code (check Active Record railtie for an example) * Extraction of ShowExceptions middleware logging and debugging features into a middleware called DebugExceptions Conflicts: actionpack/CHANGELOG.md
| * Remove unnecessary test setup.José Valim2011-12-011-6/+1
| |
| * Split and improve show and debug exceptions middlewares.José Valim2011-12-012-76/+130
| |
| * Split ShowExceptions responsibilities in two middlewares.José Valim2011-12-013-11/+16
| |
* | Revert "Added ActiveRecord::Base#last_modified to work with the new ↵David Heinemeier Hansson2011-12-011-2/+2
| | | | | | | | | | | | | | | | fresh_when/stale? conditional get methods from Action Pack" Needless indirection with no added value. This reverts commit 535853e83b9092078035a5abb2aa242fba815c05.
* | Added ActiveRecord::Base#last_modified to work with the new ↵David Heinemeier Hansson2011-12-011-2/+2
| | | | | | | | fresh_when/stale? conditional get methods from Action Pack
* | Allow fresh_when/stale? to take a record instead of an options hash [DHH]David Heinemeier Hansson2011-12-011-0/+46
|/
* fix method redefined warnings in testslest2011-11-303-12/+5
|
* fix warning in tests when using render_erb helperlest2011-11-301-0/+2
|
* test helpers in erb using erblest2011-11-306-17/+31
|
* Log 'Filter chain halted as CALLBACKNAME rendered or redirected' every time ↵José Valim2011-11-301-1/+12
| | | | a before callback halts.