aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/CHANGELOG.md
Commit message (Collapse)AuthorAgeFilesLines
* Return proper format on exceptionsSantiago Pastorino2012-06-111-0/+2
|
* Allow to use mounted helpers in ActionView::TestCasePiotr Sarnacki2012-06-011-0/+2
| | | | | Similarly to 6525002, this allows to use routes helpers for mounted helpers, but this time in ActionView::TestCase
* Sync CHANGLOG with the 3-2-stable branchRafael Mendonça França2012-06-011-0/+32
|
* Include routes.mounted_helpers into integration testsPiotr Sarnacki2012-06-011-0/+2
| | | | | | | | | | | | | | | In integration tests, you might want to use helpers from engines that you mounted in your application. It's not hard to add it by yourself, but it's unneeded boilerplate. mounted_helpers are now included by default. That means that given engine mounted like: mount Foo::Engine => "/foo", :as => "foo" you will be able to use paths from this engine in tests this way: foo.root_path #=> "/foo" (closes #6573)
* Extracted redirect logic from ActionController::Force::ClassMethods.force_sslJeremy Friesen2012-05-311-0/+4
| | | | | | | | | | | | | Prior to this patch the existing .force_ssl method handles both defining the filter and handling the logic for performing the redirect. With this patch the logic for redirecting to the HTTPS protocol is separated from the filter logic that determines if a redirect should occur. By separating the two levels of behavior, an instance method for ActionController (i.e. #force_ssl_redirect) is exposed and available for more granular SSL enforcement. Cleaned up indentation.
* accept a block in button_to helperSergey Nartimov2012-05-301-0/+16
| | | | | | | | | | | | | | | | Make possible to use a block in button_to helper if button text is hard to fit into the name parameter, e.g.: <%= button_to [:make_happy, @user] do %> Make happy <strong><%= @user.name %></strong> <% end %> # => "<form method="post" action="/users/1/make_happy" class="button_to"> # <div> # <button type="submit"> # Make happy <strong>Name</strong> # </button> # </div> # </form>"
* Fix sorting of helpers from different pathsPiotr Sarnacki2012-05-281-0/+11
| | | | | | | | | | | | | | | | When more than one directory for helpers is provided to a controller, it should preserver the order of directories. Given 2 paths: MyController.helpers_paths = ["dir1/helpers", "dir2/helpers"] helpers from dir1 should be loaded first. Before this commit, all helpers were mixed and then sorted alphabetically, which essentially would require to rename helpers to get desired order. This is a problem especially for engines, where you would like to be able to predict accurately which engine helpers will load first. (closes #6496)
* Add `:escape` option for `truncate`Rafael Mendonça França2012-05-261-0/+5
| | | | This options can be used to not escape the result by default.
* Update the documentation and add CHANGELOG entryRafael Mendonça França2012-05-261-0/+2
|
* Add several HTML5 input helpersCarlos Galdino2012-05-211-0/+3
| | | | | | | | | | | | The input types added are: - input[type="month"] - input[type="week"] - input[type="datetime"] - input[type="datetime-local"]
* Add HTML5 input[type="color"] helperCarlos Galdino2012-05-211-0/+2
|
* Fix CHANGELOG order and add a brief description of the changes in theRafael Mendonça França2012-05-201-3/+3
| | | | Action Pack in the upgrading guide. [ci skip]
* Return 400 Bad Request for URL paths with invalid encoding.Andrew White2012-05-201-0/+2
| | | | | | | | | Passing path parameters with invalid encoding is likely to trigger errors further on like `ArgumentError (invalid byte sequence in UTF-8)`. This will result in a 500 error whereas the better error to return is a 400 error which allows exception notification libraries to filter it out if they wish. Closes #4450
* Raise ActionController::BadRequest for malformed parameter hashes.Andrew White2012-05-201-0/+2
| | | | | | | | | | | | | | Currently Rack raises a TypeError when it encounters a malformed or ambiguous hash like `foo[]=bar&foo[4]=bar`. Rather than pass this through to the application this commit captures the exception and re-raises it using a new ActionController::BadRequest exception. The new ActionController::BadRequest exception returns a 400 error instead of the 500 error that would've been returned by the original TypeError. This allows exception notification libraries to ignore these errors if so desired. Closes #3051
* Raise Assertion instead of RoutingError for routing assertion failures.David Chelimsky2012-05-201-0/+3
| | | | | | | | | | | | | Before this change, assert_recognizes, assert_generates, and assert_routing raised ActionController::RoutingError when they failed to recognize the route. This commit changes them to raise Assertion instead. This aligns with convention for logical failures, and supports reporting tools that care about the difference between logical failures and errors e.g. the summary at the end of a test run. - Fixes #5899
* Clarify grouped_options_for_select method API, add changelog entryCarlos Antonio da Silva2012-05-191-0/+4
| | | | | | | | | | | | Make the method API more clear by explicitly showing the expected arguments. This means that the options cannot be passed as second argument because we are not relying on extract_options! anymore, you are expected to give a selected key or `nil` if you want to pass options, as it is the last argument. Notice that this does not change the current method arguments contract available in 3.2, it just brings back the same functionality with the divider addition.
* Add HTML5 input[type="time"] helperAlex Soulim2012-05-181-0/+2
|
* Removed old text_helper apis for highlight, excerpt and word_wrapJeremy Walker2012-05-171-0/+2
|
* Update actionpack/CHANGELOG.mdJosé Valim2012-05-171-0/+3
|
* Revert "Revert "Remove `:disable_with` in favor of `'data-disable-with'` ↵José Valim2012-05-151-0/+4
| | | | | | | | | option from `submit_tag`, `button_tag` and `button_to` helpers."" Finally remove `:disable_with` but use `:data => { :disable_with => ... }` in examples to show off a better API (which looks nicer in Ruby 1.9) This reverts commit a5c38a9c087e33d36397afc496be7c8e01b37ef0.
* Revert "Remove `:disable_with` in favor of `'data-disable-with'` option from ↵José Valim2012-05-151-4/+0
| | | | | | | | | | `submit_tag`, `button_tag` and `button_to` helpers." `disable_with:` is much easier to type than `"data-disable-with" =>`, and the fact it uses "data-disable-with" => is an implementation concern, it should not affect the public API. This reverts commit 683fc4db00f496e5225928afb4d4e932e0fcdc48.
* Remove `:disable_with` in favor of `'data-disable-with'` option from ↵Carlos Galdino + Rafael Mendonça França2012-05-141-0/+4
| | | | `submit_tag`, `button_tag` and `button_to` helpers.
* Remove `:mouseover` option from `image_tag` helper.Rafael Mendonça França2012-05-131-1/+3
|
* `:include_blank` should be true if the size option is nilRafael Mendonça França2012-05-131-1/+1
|
* Merge pull request #6225 from ↵Rafael Mendonça França2012-05-131-0/+3
|\ | | | | | | | | | | | | | | | | | | | | acapilleri/select_with_required_true_include_first_option_blank HTML5 validation error with options_from_collection_for_select Fixes #5908 Conflicts: actionpack/CHANGELOG.md
| * Changed the changelog and documentation aboutAngelo Capilleri2012-05-131-0/+3
| | | | | | | | | | the select method (tag select) forces :include_blank if is required and no multiple and display size is one
* | mispelling error in actionpach changelogangelo giovanni capilleri2012-05-121-1/+1
| |
* | Copy literal route constraints to defaults - fixes #3571 and #6224.Andrew White2012-05-111-0/+5
|/
* Update actionpack/CHANGELOG.mdJosé Valim2012-05-061-1/+5
|
* Allows assert_redirected_to to accept a regular expressionAndy Lindeman2012-05-031-0/+2
|
* Add CHANGELOG entrySantiago Pastorino2012-05-021-0/+2
|
* Replace boolean argument with an options hash.Dmitriy Kiriyenko2012-04-301-0/+3
| | | | | | | | This replaces `include_seconds` argument with an option key `include_seconds => true` in options hash. Also `time_ago_in_words` now passes options hash, including a `locale` key, which makes in compatible with `distance_of_time_in_words`.
* Remove `button_to_function` and `link_to_function` helpersRafael Mendonça França2012-04-301-0/+2
|
* Add changelog entry and some docs for collection + layoutCarlos Antonio da Silva2012-04-291-0/+3
|
* Add changelog entry for jsonp mimetype change, fix failing testCarlos Antonio da Silva2012-04-291-0/+2
| | | | Fix failing test: Mime::JS generates "text/javascript"
* Lazy load `default_form_builder` if it's passed as a stringPiotr Sarnacki2012-04-281-0/+2
| | | | closes #3341
* Merge session arg with existing session instead of overwritingAndrew White2012-04-281-0/+7
| | | | | | | | | | | | | | | | | | | | | | | This may break existing tests that are asserting the whole session contents but should not break existing tests that are asserting individual keys - e.g: class SomeControllerTest < ActionController::TestCase setup do session['user_id'] = 1 end test "some test" do get :some_action, nil, { 'another_var' => 2 } # This assertion will now fail assert_equal({ 'another_var' => 2 }, session) # This assertion will still pass assert_equal 2, session['another_var] end end Fixes #1529.
* Update Rails 3.2.3 release date in changelogs as March 30, 2012Michael de Silva2012-04-161-1/+1
| | | | | The release date details have been taken from http://weblog.rubyonrails.org/2012/3/30/ann-rails-3-2-3-has-been-released/
* Add index method to FormBuilder. Useful when you use field_for and need to ↵Jorge Bejar2012-04-111-0/+2
| | | | know the index number into the iteration.
* Remove the leading \n added by textarea on assert_selectSantiago Pastorino2012-03-301-0/+2
|
* config.action_view.embed_authenticity_token_in_remote_forms is true by defaultPiotr Sarnacki2012-03-281-0/+5
| | | | | | | Changed default value for `config.action_view.embed_authenticity_token_in_remote_forms` to `false`. This change breaks remote forms that need to work also without javascript, so if you need such behavior, you can either set it to `true` or explicitly pass `:authenticity_token => true` in form options
* Added config.action_view.embed_authenticity_token_in_remote_formsPiotr Sarnacki2012-03-281-0/+2
| | | | | | | | | | | | There is a regression introduced in 16ee611fa, which breaks remote forms that should also work without javascript. This commit introduces config option that allows to configure this behavior defaulting to the old behavior (ie. include authenticity token in remote forms by default) Conflicts: actionpack/CHANGELOG.md
* Update the guides and CHANGELOGRafael Mendonça França2012-03-171-2/+4
|
* Do not include the authenticity token in forms where remote: true as ajax ↵David Heinemeier Hansson2012-03-141-0/+5
| | | | forms use the meta-tag value
* Remove --http.José Valim2012-03-141-2/+0
|
* Add API apps CHANGELOG entrySantiago Pastorino2012-03-141-0/+2
|
* fix typo in AP CHANGELOG [ci skip]Vasiliy Ermolovich2012-03-131-1/+1
|
* add 'include_hidden' option to select tag, closes #5402Vasiliy Ermolovich2012-03-131-0/+2
|
* Documented the removal of size from text_field based helpers and cols, rows ↵Philip Arndt2012-03-121-0/+4
| | | | from text_area helper.
* Minor changelog fixes [ci skip]Vijay Dev2012-03-091-1/+1
|