Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Make send_file guess content-type from file extension, if type wasn't ↵ | Esad Hajdarevic | 2011-06-28 | 1 | -2/+13 |
| | | | | supplied (Issue #1847). Update tests & documentation. | ||||
* | make the logs a little simpler to view, put the render message inline with ↵ | James Cox | 2011-06-24 | 1 | -4/+5 |
| | | | | other events, pull processing to char[0] and add a new line to the completed. looks more like a block now, which is useful for serial actions like test/dev | ||||
* | Merge branch 'master' of git://github.com/lifo/docrails | Xavier Noria | 2011-06-23 | 1 | -7/+9 |
|\ | |||||
| * | more detail on how the flow between redirect and show works, and minor grammar | Matt Jankowski | 2011-06-21 | 1 | -7/+9 |
| | | |||||
* | | Fixes an issue where cache sweepers with only after filters would have no ↵ | Jeroen Jacobs | 2011-06-21 | 1 | -0/+1 |
| | | | | | | | | | | | | controller object It would raise undefined method controller_name for nil | ||||
* | | Call super here to allow SessionHash initialize new stuff for us | Santiago Pastorino | 2011-06-19 | 1 | -1/+1 |
|/ | |||||
* | Tweak linebreak in ActionController::Redirecting doc | Christine Yen | 2011-06-15 | 1 | -2/+2 |
| | |||||
* | Improve documentation around status code argument of redirect_to | Christine Yen | 2011-06-15 | 1 | -1/+2 |
| | |||||
* | remove warning: assigned but unused variable | Santiago Pastorino | 2011-06-08 | 2 | -2/+1 |
| | |||||
* | Added missing assert to test checking form with namespaced isolated model ↵ | Piotr Sarnacki | 2011-06-07 | 1 | -1/+1 |
| | | | | and fixed helpers to work correctly in such case | ||||
* | Merge branch 'master' of git://github.com/lifo/docrails | Xavier Noria | 2011-06-06 | 3 | -6/+5 |
|\ | | | | | | | | | Conflicts: activerecord/RUNNING_UNIT_TESTS | ||||
| * | Remove trailing white-spaces | Guillermo Iguaran | 2011-06-05 | 1 | -1/+0 |
| | | |||||
| * | some grammatical corrections | Vijay Dev | 2011-06-04 | 1 | -3/+3 |
| | | |||||
| * | Removing trailing white-spaces | Guillermo Iguaran | 2011-05-31 | 1 | -2/+2 |
| | | |||||
* | | Add backward compatibility for testing cookies | Andrew White | 2011-06-05 | 1 | -1/+8 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit restores the ability to assign cookies for testing via @request.env['HTTP_COOKIE'] and @request.cookies, e.g: @request.env['HTTP_COOKIE'] = 'user_name=david' get :index assert_equal 'david', cookies[:user_name] and @request.cookies[:user_name] = 'david' get :index assert_equal 'david', cookies[:user_name] Assigning via cookies[] is the preferred method and will take precedence over the other two methods. This is so that cookies set in controller actions have precedence and are carried over between calls to get, post, etc. | ||||
* | | Refactor ActionController::TestCase cookies | Andrew White | 2011-06-04 | 1 | -13/+8 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Assigning cookies for test cases should now use cookies[], e.g: cookies[:email] = 'user@example.com' get :index assert_equal 'user@example.com', cookies[:email] To clear the cookies, use clear, e.g: cookies.clear get :index assert_nil cookies[:email] We now no longer write out HTTP_COOKIE and the cookie jar is persistent between requests so if you need to manipulate the environment for your test you need to do it before the cookie jar is created. | ||||
* | | Merge pull request #1203 from dchelimsky/stringify-parameter-values-in-tests | José Valim | 2011-05-28 | 1 | -0/+19 |
|\ \ | | | | | | | Stringify param values in controller tests. | ||||
| * | | use to_param (and change method to name accordingly) | David Chelimsky | 2011-05-22 | 1 | -8/+8 |
| | | | | | | | | | | | | | | | - exclude Rack::Test::UploadedFile to pass existing tests. Are there any other types we're missing? | ||||
| * | | Stringify param values in controller tests. | David Chelimsky | 2011-05-22 | 1 | -0/+19 |
| | | | | | | | | | | | | | | | | | | | | | | | | This reduces false positives that come from using ints in params in tests, which do not get converted to strings in the tests. In implementations going through rack, they do get converted to strings. - David Chelimsky and Sam Umbach | ||||
* | | | Merge pull request #1324 from dmathieu/no_error_on_invalid_format | José Valim | 2011-05-26 | 1 | -1/+1 |
|\ \ \ | |_|/ |/| | | Don't raise an exception if the format isn't recognized | ||||
| * | | don't raise an exception if the format isn't recognized | dmathieu | 2011-05-26 | 1 | -1/+1 |
| | | | | | | | | | | | | Fixed while traveling to heuruko | ||||
* | | | Merge branch 'master' of git://github.com/lifo/docrails | Xavier Noria | 2011-05-25 | 6 | -14/+14 |
|\ \ \ | |/ / |/| | | | | | | | | | | | Conflicts: actionmailer/lib/action_mailer/base.rb activesupport/lib/active_support/core_ext/kernel/requires.rb | ||||
| * | | fix minor spelling mistakes in comments | Dmytrii Nagirniak | 2011-05-23 | 1 | -3/+3 |
| | | | |||||
| * | | Remove extra white spaces on ActionPack docs. | Sebastian Martinez | 2011-05-23 | 5 | -11/+11 |
| | | | |||||
* | | | Replace references to ActiveSupport::SecureRandom with just SecureRandom, ↵ | Jon Leighton | 2011-05-23 | 2 | -2/+2 |
| |/ |/| | | | | | and require 'securerandom' from the stdlib when active support is required. | ||||
* | | renamed the wrap_parameters :only and :except options to :include and ↵ | Josh Kalderimis | 2011-05-19 | 1 | -17/+17 |
|/ | | | | :exclude to make it consistent with controller filters | ||||
* | Use anonymous? that works on both Ruby 1.8 and 1.9. | José Valim | 2011-05-17 | 2 | -5/+7 |
| | |||||
* | add more robust test for wrapping params with anonymous class | David Chelimsky | 2011-05-17 | 2 | -3/+6 |
| | |||||
* | Add fix for error when an anonymous controller subclasses ApplicationController | Andy Lindeman | 2011-05-17 | 1 | -1/+4 |
| | |||||
* | Make ParamsWrapper calling newly introduced `Model.attribute_names` instead ↵ | Prem Sichanugrist | 2011-05-15 | 1 | -3/+3 |
| | | | | of `.column_names` | ||||
* | Do not try to call `column_names` on the abstract class. | Prem Sichanugrist | 2011-05-15 | 1 | -1/+1 |
| | | | Normally the table for abstract class won't be existed, so we should not trying to call `#column_names` on it. | ||||
* | Merge branch 'master' of git://github.com/lifo/docrails | Xavier Noria | 2011-05-14 | 1 | -0/+21 |
|\ | | | | | | | | | | | Conflicts: actionpack/lib/action_view/helpers/date_helper.rb railties/lib/rails/generators/rails/app/templates/config/initializers/wrap_parameters.rb.tt | ||||
| * | minor edits after going through what's new in docrails | Xavier Noria | 2011-05-14 | 1 | -4/+7 |
| | | |||||
| * | added an example for AC::UrlFor usage to make usage simpler. | Nick Sutterer | 2011-05-12 | 1 | -1/+13 |
| | | |||||
| * | added docs for AbC::UrlFor and AC::UrlFor. | Nick Sutterer | 2011-05-12 | 1 | -0/+6 |
| | | |||||
* | | Get around weird missing constant error caused by AS instead of simply ↵ | José Valim | 2011-05-11 | 1 | -5/+13 |
| | | | | | | | | raising NameError, closes #477. | ||||
* | | Warn if we cannot verify CSRF token authenticity | José Valim | 2011-05-09 | 1 | -1/+4 |
| | | |||||
* | | Merge pull request #280 from jballanc/frozen-string-strip-tags | José Valim | 2011-05-07 | 1 | -1/+1 |
|\ \ | | | | | | | Stripping tags from a frozen string | ||||
| * | | Fix for stripping tags from frozen strings. | Joshua Ballanco | 2011-04-14 | 1 | -1/+1 |
| | | | | | | | | | | | | This returns behavior under Ruby 1.9 to match Ruby 1.8. | ||||
* | | | Use .ref instead of .to_sym. | José Valim | 2011-05-07 | 2 | -2/+4 |
| | | | |||||
* | | | Revert to old semantics, use available_action? instead of action_method?. | José Valim | 2011-05-06 | 1 | -9/+7 |
| | | | |||||
* | | | More updates to ivars list. | José Valim | 2011-05-06 | 1 | -2/+4 |
| | | | |||||
* | | | Move variables to underscore format, update protected instance variables list. | José Valim | 2011-05-06 | 1 | -7/+2 |
| | | | |||||
* | | | Ensure params wrapper settings are not inherited and calculated each time. | José Valim | 2011-05-06 | 1 | -1/+1 |
| | | | |||||
* | | | Update respond_with docs to deal better with collections. | José Valim | 2011-05-05 | 1 | -1/+6 |
| |/ |/| | |||||
* | | More performance optimizations. | José Valim | 2011-05-03 | 1 | -13/+17 |
| | | |||||
* | | Improve performance for filtered parameters and add tests. | José Valim | 2011-05-03 | 3 | -5/+7 |
| | | |||||
* | | Instrumentation should have callbacks. | José Valim | 2011-05-03 | 1 | -4/+4 |
| | | |||||
* | | Move most processing to load time for performance and improve test suite. | José Valim | 2011-05-03 | 1 | -25/+49 |
| | | |||||
* | | Update CHANGELOG. | José Valim | 2011-05-03 | 1 | -1/+1 |
| | |