2012-01-14 15:03:18 -05:00
## Rails 4.0.0 (unreleased) ##
2012-01-19 13:52:10 -05:00
2012-10-18 13:35:31 -04:00
* `date_select` helper accepts `with_css_classes: true` to add css classes similar with type
of generated select tags.
*Pavel Nikitin*
2012-10-17 22:37:01 -04:00
* Only non-js/css under app/assets path will be included in default config.assets.precompile.
*Josh Peek*
2012-10-17 21:17:08 -04:00
* Remove support for the RAILS_ASSET_ID environment configuration
(no longer needed now that we have the asset pipeline).
*Josh Peek*
2012-10-17 20:03:56 -04:00
* Remove old asset_path configuration (no longer needed now that we have the asset pipeline).
*Josh Peek*
2012-10-08 16:22:47 -04:00
* `assert_template` can be used to assert on the same template with different locals
Fix #3675
*Yves Senn*
2012-10-17 20:03:56 -04:00
* Remove old asset tag concatenation (no longer needed now that we have the asset pipeline).
*Josh Peek*
2012-10-10 13:22:31 -04:00
2012-10-06 16:58:27 -04:00
* Accept :remote as symbolic option for `link_to` helper. *Riley Lynch*
2012-10-04 14:55:02 -04:00
* Warn when the `:locals` option is passed to `assert_template` outside of a view test case
Fix #3415
*Yves Senn*
* The `Rack::Cache` middleware is now disabled by default. To enable it,
2012-10-03 17:48:45 -04:00
set `config.action_dispatch.rack_cache = true` and add `gem rack-cache` to your Gemfile.
*Guillermo Iguaran*
2012-10-04 11:46:10 -04:00
* `ActionController::Base.page_cache_extension` option is deprecated
in favour of `ActionController::Base.default_static_extension` .
*Francesco Rodriguez*
* Action and Page caching has been extracted from Action Dispatch
as `actionpack-action_caching` and `actionpack-page_caching` gems.
Please read the `README.md` file on both gems for the usage.
*Francesco Rodriguez*
2012-07-06 01:39:15 -04:00
* Failsafe exception returns text/plain. *Steve Klabnik*
2012-10-03 17:48:45 -04:00
* Remove `rack-cache` dependency from Action Pack and declare it on Gemfile
2012-10-01 23:06:05 -04:00
2012-10-03 17:48:45 -04:00
*Guillermo Iguaran*
2012-10-01 23:06:05 -04:00
2012-09-30 04:54:50 -04:00
* Rename internal variables on ActionController::TemplateAssertions to prevent
naming collisions. @partials , @templates and @layouts are now prefixed with an underscore.
Fix #7459
*Yves Senn*
2012-09-29 14:21:16 -04:00
* `resource` and `resources` don't modify the passed options hash
Fix #7777
*Yves Senn*
2012-09-30 17:57:04 -04:00
* Precompiled assets include aliases from foo.js to foo/index.js and vice versa.
# Precompiles phone-< digest > .css and aliases phone/index.css to phone.css.
config.assets.precompile = [ 'phone.css' ]
# Precompiles phone/index-< digest > .css and aliases phone.css to phone/index.css.
config.assets.precompile = [ 'phone/index.css' ]
# Both of these work with either precompile thanks to their aliases.
< %= stylesheet_link_tag 'phone', media: 'all' %>
< %= stylesheet_link_tag 'phone/index', media: 'all' %>
*Jeremy Kemper*
2012-09-29 23:21:51 -04:00
* `assert_template` is no more passing with what ever string that matches
with the template name.
2012-04-06 23:27:47 -04:00
2012-09-29 23:21:51 -04:00
Before when we have a template `/layout/hello.html.erb` , `assert_template`
was passing with any string that matches. This behavior allowed false
positive like:
2012-04-06 23:27:47 -04:00
2012-09-29 23:21:51 -04:00
assert_template "layout"
assert_template "out/hello"
2012-04-06 23:27:47 -04:00
2012-09-29 23:21:51 -04:00
Now it only passes with:
2012-04-06 23:27:47 -04:00
2012-09-29 23:21:51 -04:00
assert_template "layout/hello"
assert_template "hello"
Fixes #3849 .
2012-04-06 23:27:47 -04:00
2012-09-29 23:21:51 -04:00
*Hugolnx*
2012-04-06 23:27:47 -04:00
2012-09-25 09:20:13 -04:00
* `image_tag` will set the same width and height for image if numerical value
passed to `size` option.
*Nihad Abbasov*
2012-09-22 22:36:45 -04:00
* Deprecate Mime::Type#verify_request? and Mime::Type.browser_generated_types,
since they are no longer used inside of Rails, they will be removed in Rails 4.1
*Michael Grosser*
2012-09-22 17:22:30 -04:00
* `ActionDispatch::Http::UploadedFile` now delegates `close` to its tempfile. *Sergio Gil*
2012-09-19 18:10:32 -04:00
* Add `ActionController::StrongParameters` , this module converts `params` hash into
2012-09-22 17:22:30 -04:00
an instance of ActionController::Parameters that allows whitelisting of permitted
2012-09-19 18:10:32 -04:00
parameters. Non-permitted parameters are forbidden to be used in Active Model by default
2012-09-22 17:22:30 -04:00
For more details check the documentation of the module or the
2012-09-19 18:10:32 -04:00
[strong_parameters gem ](https://github.com/rails/strong_parameters )
*DHH + Guillermo Iguaran*
* Remove Integration between `attr_accessible` /`attr_protected` and
2012-09-22 17:22:30 -04:00
`ActionController::ParamsWrapper` . ParamWrapper now wraps all the parameters returned
2012-09-19 18:10:32 -04:00
by the class method attribute_names
*Guillermo Iguaran*
2012-09-16 15:48:24 -04:00
* Fix #7646 , the log now displays the correct status code when an exception is raised.
*Yves Senn*
2012-09-22 17:22:30 -04:00
* Allow pass couple extensions to `ActionView::Template.register_template_handler` call.
*Tima Maslyuchenko*
2012-09-14 11:25:07 -04:00
2012-09-17 10:13:45 -04:00
* Fixed a bug with shorthand routes scoped with the `:module` option not
adding the module to the controller as described in issue #6497 .
This should now work properly:
scope :module => "engine" do
get "api/version" # routes to engine/api#version
end
2012-09-22 17:22:30 -04:00
2012-09-17 10:13:45 -04:00
*Luiz Felipe Garcia Pereira*
2012-09-30 03:05:12 -04:00
* Sprockets integration has been extracted from Action Pack to the `sprockets-rails`
gem. `rails` gem is depending on `sprockets-rails` by default.
2012-09-11 02:52:46 -04:00
*Guillermo Iguaran*
2012-09-17 12:17:37 -04:00
* `ActionDispatch::Session::MemCacheStore` now uses `dalli` instead of the deprecated
`memcache-client` gem. As side effect the autoloading of unloaded classes objects
saved as values in session isn't supported anymore when mem_cache session store is
used, this can have an impact in apps only when config.cache_classes is false.
2012-09-11 02:52:46 -04:00
*Arun Agrawal + Guillermo Iguaran*
2011-08-13 22:23:27 -04:00
* Support multiple etags in If-None-Match header. *Travis Warlick*
2012-09-14 10:48:05 -04:00
* Allow to configure how unverified request will be handled using `:with`
option in `protect_from_forgery` method.
Valid unverified request handling methods are:
- `:exception` - Raises ActionController::InvalidAuthenticityToken exception.
- `:reset_session` - Resets the session.
- `:null_session` - Provides an empty session during request but doesn't
reset it completely. Used as default if `:with` option is not specified.
New applications are generated with:
protect_from_forgery :with => :exception
*Sergey Nartimov*
2012-09-17 11:07:08 -04:00
* Add .ruby template handler, this handler simply allows arbitrary Ruby code as a template. *Guillermo Iguaran*
2012-09-11 02:08:40 -04:00
2012-09-08 08:07:07 -04:00
* Add `separator` option for `ActionView::Helpers::TextHelper#excerpt` :
excerpt('This is a very beautiful morning', 'very', :separator => ' ', :radius => 1)
# => ...a very beautiful...
*Guirec Corbel*
2012-07-28 17:34:36 -04:00
2012-08-29 16:06:30 -04:00
* Added controller-level etag additions that will be part of the action etag computation *Jeremy Kemper/DHH*
2012-08-29 16:34:11 -04:00
class InvoicesController < ApplicationController
etag { current_user.try :id }
def show
# Etag will differ even for the same invoice when it's viewed by a different current_user
@invoice = Invoice.find(params[:id])
fresh_when(@invoice)
end
2012-08-29 16:06:30 -04:00
end
2012-09-24 18:55:52 -04:00
* Add automatic template digests to all `CacheHelper#cache` calls (originally spiked in the cache_digests plugin) *DHH*
2012-08-29 15:23:15 -04:00
2012-08-01 16:33:15 -04:00
* When building a URL fails, add missing keys provided by Journey. Failed URL
generation now returns a 500 status instead of a 404.
*Richard Schneeman*
2012-09-24 18:55:52 -04:00
* Deprecate availbility of `ActionView::RecordIdentifier` in controllers by default.
2012-08-25 07:50:45 -04:00
It's view specific and can be easily included in controller manually if someone
2012-09-24 18:55:52 -04:00
really needs it. RecordIdentifier will be removed from `ActionController::Base`
in Rails 4.1. *Piotr Sarnacki*
2012-08-25 07:50:45 -04:00
2012-09-24 18:55:52 -04:00
* Fix `ActionView::RecordIdentifier` to work as a singleton. *Piotr Sarnacki*
2012-08-25 07:50:45 -04:00
2012-09-24 18:55:52 -04:00
* Deprecate `Template#mime_type` , it will be removed in Rails 4.1 in favor of `#type` .
2012-08-25 07:50:45 -04:00
*Piotr Sarnacki*
2012-09-24 18:55:52 -04:00
* Move vendored html-scanner from `action_controller` to `action_view` directory. If you
2012-08-25 07:50:45 -04:00
require it directly, please use 'action_view/vendor/html-scanner', reference to
2012-09-24 18:55:52 -04:00
'action_controller/vendor/html-scanner' will be removed in Rails 4.1. *Piot Sarnacki*
2012-08-25 07:50:45 -04:00
2012-08-23 14:59:22 -04:00
* Fix handling of date selects when using both disabled and discard options.
Fixes #7431 .
*Vasiliy Ermolovich*
2012-08-15 01:22:50 -04:00
* `ActiveRecord::SessionStore` is extracted out of Rails into a gem `activerecord-session_store` .
Setting `config.session_store` to `:active_record_store` will no longer work and will break
if the `activerecord-session_store` gem isn't available. *Prem Sichanugrist*
2012-09-24 18:55:52 -04:00
* Fix `select_tag` when `option_tags` is nil.
2012-08-21 12:43:22 -04:00
Fixes #7404 .
*Sandeep Ravichandran*
2012-09-24 18:55:52 -04:00
* Add `Request#formats=(extensions)` that lets you set multiple formats directly in a prioritized order.
2012-08-14 23:09:43 -04:00
Example of using this for custom iphone views with an HTML fallback:
2012-08-16 22:53:35 -04:00
class ApplicationController < ActionController::Base
before_filter :adjust_format_for_iphone_with_html_fallback
private
def adjust_format_for_iphone_with_html_fallback
request.formats = [ :iphone, :html ] if request.env["HTTP_USER_AGENT"][/iPhone/]
end
end
2012-08-14 23:09:43 -04:00
2012-09-24 18:55:52 -04:00
*DHH*
2012-08-14 23:09:43 -04:00
2012-08-09 23:06:16 -04:00
* Add Routing Concerns to declare common routes that can be reused inside
others resources and routes.
Code before:
resources :messages do
resources :comments
end
resources :posts do
resources :comments
resources :images, only: :index
end
Code after:
concern :commentable do
resources :comments
end
concern :image_attachable do
resources :images, only: :index
end
resources :messages, concerns: :commentable
resources :posts, concerns: [:commentable, :image_attachable]
2012-08-14 23:09:43 -04:00
*DHH + Rafael Mendonça França*
2012-08-09 23:06:16 -04:00
2012-09-24 18:55:52 -04:00
* Add `start_hour` and `end_hour` options to the `select_hour` helper. *Evan Tann*
2012-08-12 15:53:54 -04:00
2012-09-24 18:55:52 -04:00
* Raises an `ArgumentError` when the first argument in `form_for` contain `nil`
2012-08-11 11:55:55 -04:00
or is empty.
*Richard Schneeman*
2012-08-18 18:29:58 -04:00
* Add 'X-Frame-Options' => 'SAMEORIGIN'
'X-XSS-Protection' => '1; mode=block' and
'X-Content-Type-Options' => 'nosniff'
2012-08-10 12:19:06 -04:00
as default headers.
*Egor Homakov*
2012-08-08 17:35:59 -04:00
* Allow data attributes to be set as a first-level option for form_for, so you can write `form_for @record, data: { behavior: 'autosave' }` instead of `form_for @record, html: { data: { behavior: 'autosave' } }` *DHH*
2012-08-07 19:39:31 -04:00
* Deprecate `button_to_function` and `link_to_function` helpers.
We recommend the use of Unobtrusive JavaScript instead. For example:
2012-08-11 12:11:01 -04:00
link_to "Greeting", "#", :class => "nav_link"
2012-08-07 19:39:31 -04:00
2012-08-11 12:11:01 -04:00
$(function() {
$('.nav_link').click(function() {
// Some complex code
2012-08-07 19:39:31 -04:00
2012-08-11 12:11:01 -04:00
return false;
});
2012-08-07 19:39:31 -04:00
});
or
2012-08-11 12:11:01 -04:00
link_to "Greeting", '#', onclick: "alert('Hello world!'); return false", class: "nav_link"
2012-08-07 19:39:31 -04:00
for simple cases.
*Rafael Mendonça França*
2012-08-06 16:22:23 -04:00
* `javascript_include_tag :all` will now not include `application.js` if the file does not exists. *Prem Sichanugrist*
2012-08-05 20:12:57 -04:00
* Send an empty response body when call `head` with status between 100 and 199, 204, 205 or 304.
*Armand du Plessis*
2012-09-24 18:55:52 -04:00
* Fixed issue with where digest authentication would not work behind a proxy. *Arthur Smith*
2012-08-02 16:46:41 -04:00
2012-09-24 18:21:15 -04:00
* Added `ActionController::Live` . Mix it in to your controller and you can
2012-07-30 00:42:42 -04:00
stream data to the client live. For example:
2012-08-11 12:11:01 -04:00
class FooController < ActionController::Base
include ActionController::Live
2012-07-30 00:42:42 -04:00
2012-08-11 12:11:01 -04:00
def index
100.times {
# Client will see this as it's written
response.stream.write "hello world\n"
sleep 1
}
response.stream.close
end
2012-07-30 00:42:42 -04:00
end
2012-09-24 18:21:15 -04:00
*Aaron Patterson*
* Remove `ActionDispatch::Head` middleware in favor of `Rack::Head` . *Santiago Pastorino*
2012-07-23 13:37:09 -04:00
2012-07-21 14:20:26 -04:00
* Deprecate `:confirm` in favor of `:data => { :confirm => "Text" }` option for `button_to` , `button_tag` , `image_submit_tag` , `link_to` and `submit_tag` helpers.
2012-06-01 15:54:21 -04:00
2012-07-21 14:20:26 -04:00
*Carlos Galdino + Rafael Mendonça França*
2012-06-01 15:54:21 -04:00
2012-07-08 12:30:42 -04:00
* Show routes in exception page while debugging a `RoutingError` in development. *Richard Schneeman and Mattt Thompson*
2012-07-07 16:55:54 -04:00
2012-07-06 14:34:56 -04:00
* Add `ActionController::Flash.add_flash_types` method to allow people to register their own flash types. e.g.:
class ApplicationController
add_flash_types :error, :warning
end
2012-07-08 12:30:42 -04:00
If you add the above code, you can use `<%= error %>` in an erb, and `redirect_to /foo, :error => 'message'` in a controller.
2012-07-06 14:34:56 -04:00
*kennyj*
2012-06-30 15:31:40 -04:00
* Remove Active Model dependency from Action Pack. *Guillermo Iguaran*
2012-06-05 11:59:01 -04:00
* Support unicode characters in routes. Route will be automatically escaped, so instead of manually escaping:
get Rack::Utils.escape('こんにちは') => 'home#index'
You just have to write the unicode route:
get 'こんにちは' => 'home#index'
*kennyj*
2012-06-11 15:58:24 -04:00
* Return proper format on exceptions. *Santiago Pastorino*
2012-07-01 13:34:47 -04:00
* Allow to use `mounted_helpers` (helpers for accessing mounted engines) in `ActionView::TestCase` . *Piotr Sarnacki*
2012-06-01 11:42:33 -04:00
2012-07-01 13:34:47 -04:00
* Include `mounted_helpers` (helpers for accessing mounted engines) in `ActionDispatch::IntegrationTest` by default. *Piotr Sarnacki*
2012-06-01 09:53:52 -04:00
2012-05-31 10:06:17 -04:00
* Extracted redirect logic from `ActionController::ForceSSL::ClassMethods.force_ssl` into `ActionController::ForceSSL#force_ssl_redirect`
*Jeremy Friesen*
2012-09-24 18:55:52 -04:00
* Make possible to use a block in `button_to` if the button text is hard
2012-05-30 16:15:15 -04:00
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 > "
*Sergey Nartimov*
2012-05-27 08:01:44 -04:00
* change a way of ordering helpers from several directories. Previously,
when loading helpers from multiple paths, all of the helpers files were
gathered into one array an then they were sorted. Helpers from different
directories should not be mixed before loading them to make loading more
predictable. The most common use case for such behavior is loading helpers
from engines. When you load helpers from application and engine Foo, in
that order, first rails will load all of the helpers from application,
sorted alphabetically and then it will do the same for Foo engine.
*Piotr Sarnacki*
2012-07-01 13:34:47 -04:00
* `truncate` now always returns an escaped HTML-safe string. The option `:escape` can be used as
2012-05-26 13:11:28 -04:00
false to not escape the result.
*Li Ellis Gallardo + Rafael Mendonça França*
2012-05-26 12:56:42 -04:00
* `truncate` now accepts a block to show extra content when the text is truncated. *Li Ellis Gallardo*
2012-05-16 17:24:16 -04:00
* Add `week_field` , `week_field_tag` , `month_field` , `month_field_tag` , `datetime_local_field` ,
`datetime_local_field_tag` , `datetime_field` and `datetime_field_tag` helpers. *Carlos Galdino*
2012-05-16 18:20:32 -04:00
* Add `color_field` and `color_field_tag` helpers. *Carlos Galdino*
2012-05-20 17:16:03 -04:00
* `assert_generates` , `assert_recognizes` , and `assert_routing` all raise
`Assertion` instead of `RoutingError` *David Chelimsky*
2012-05-20 11:44:42 -04:00
* URL path parameters with invalid encoding now raise ActionController::BadRequest. *Andrew White*
2012-05-20 05:04:12 -04:00
* Malformed query and request parameter hashes now raise ActionController::BadRequest. *Andrew White*
2012-05-19 08:49:01 -04:00
* Add `divider` option to `grouped_options_for_select` to generate a separator
`optgroup` automatically, and deprecate `prompt` as third argument, in favor
of using an options hash. *Nicholas Greenfield*
2012-04-03 08:01:00 -04:00
* Add `time_field` and `time_field_tag` helpers which render an `input[type="time"]` tag. *Alex Soulim*
2012-05-17 16:52:49 -04:00
* Removed old text_helper apis for highlight, excerpt and word_wrap *Jeremy Walker*
2012-05-17 13:21:01 -04:00
* Templates without a handler extension now raises a deprecation warning but still
defaults to ERb. In future releases, it will simply return the template contents. *Steve Klabnik*
2012-07-21 15:19:40 -04:00
* Deprecate `:disable_with` in favor of `:data => { :disable_with => "Text" }` option from `submit_tag` , `button_tag` and `button_to` helpers.
2012-05-15 04:06:27 -04:00
*Carlos Galdino + Rafael Mendonça França*
2012-05-13 18:55:44 -04:00
* Remove `:mouseover` option from `image_tag` helper. *Rafael Mendonça França*
* The `select` method (select tag) forces :include_blank if `required` is true and
2012-05-12 20:23:41 -04:00
`display size` is one and `multiple` is not true. *Angelo Capilleri*
2012-05-11 02:23:24 -04:00
* Copy literal route constraints to defaults so that url generation know about them.
The copied constraints are `:protocol` , `:subdomain` , `:domain` , `:host` and `:port` .
*Andrew White*
2012-05-06 05:11:40 -04:00
* `respond_to` and `respond_with` now raise ActionController::UnknownFormat instead
of directly returning head 406. The exception is rescued and converted to 406
in the exception handling middleware. *Steven Soroka*
2012-05-03 09:16:38 -04:00
* Allows `assert_redirected_to` to match against a regular expression. *Andy Lindeman*
2012-05-02 21:12:43 -04:00
* Add backtrace to development routing error page. *Richard Schneeman*
2012-04-30 03:11:34 -04:00
* Replace `include_seconds` boolean argument with `:include_seconds => true` option
in `distance_of_time_in_words` and `time_ago_in_words` signature. *Dmitriy Kiriyenko*
2012-04-26 21:06:41 -04:00
* Make current object and counter (when it applies) variables accessible when
rendering templates with :object / :collection. *Carlos Antonio da Silva*
2012-09-21 11:08:49 -04:00
* JSONP now uses mimetype text/javascript instead of application/json. *omjokine*
2012-04-29 10:55:35 -04:00
2012-04-07 13:29:17 -04:00
* Allow to lazy load `default_form_builder` by passing a `String` instead of a constant. *Piotr Sarnacki*
2012-04-28 17:23:58 -04:00
* Session arguments passed to `process` calls in functional tests are now merged into
the existing session, whereas previously they would replace the existing session.
This change may break some existing tests if they are asserting the exact contents of
the session but should not break existing tests that only assert individual keys.
*Andrew White*
2012-04-05 12:17:11 -04:00
* Add `index` method to FormBuilder class. *Jorge Bejar*
2012-03-30 10:39:18 -04:00
* Remove the leading \n added by textarea on assert_select. *Santiago Pastorino*
2012-03-28 11:54:06 -04:00
* 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
2012-03-17 12:36:24 -04:00
* Added ActionDispatch::SSL middleware that when included force all the requests to be under HTTPS protocol. *Rafael Mendonça França*
2012-03-13 14:24:41 -04:00
* Add `include_hidden` option to select tag. With `:include_hidden => false` select with `multiple` attribute doesn't generate hidden input with blank value. *Vasiliy Ermolovich*
2012-03-13 12:59:04 -04:00
2012-03-11 17:39:45 -04:00
* Removed default `size` option from the `text_field` , `search_field` , `telephone_field` , `url_field` , `email_field` helpers. *Philip Arndt*
* Removed default `cols` and `rows` options from the `text_area` helper. *Philip Arndt*
2012-03-08 22:01:34 -05:00
* Adds support for layouts when rendering a partial with a given collection. *serabe*
2012-03-06 18:06:42 -05:00
2012-03-08 22:01:34 -05:00
* Allows the route helper `root` to take a string argument. For example, `root 'pages#main'` . *bcardarella*
2012-03-05 12:11:13 -05:00
2012-03-08 22:01:34 -05:00
* Forms of persisted records use always PATCH (via the `_method` hack). *fxn*
2012-02-24 19:25:41 -05:00
2012-03-08 22:01:34 -05:00
* For resources, both PATCH and PUT are routed to the `update` action. *fxn*
2012-02-24 19:25:41 -05:00
2012-02-23 07:57:36 -05:00
* Don't ignore `force_ssl` in development. This is a change of behavior - use a `:if` condition to recreate the old behavior.
class AccountsController < ApplicationController
force_ssl :if => :ssl_configured?
def ssl_configured?
!Rails.env.development?
end
end
*Pat Allan*
2012-02-22 15:09:35 -05:00
* Adds support for the PATCH verb:
* Request objects respond to `patch?` .
* Routes have a new `patch` method, and understand `:patch` in the
existing places where a verb is configured, like `:via` .
* New method `patch` available in functional tests.
* If `:patch` is the default verb for updates, edits are
tunneled as PATCH rather than as PUT, and routing acts accordingly.
* New method `patch_via_redirect` available in integration tests.
*dlee*
2012-02-19 21:31:35 -05:00
* Integration tests support the `OPTIONS` method. *Jeremy Kemper*
2012-02-17 08:16:58 -05:00
* `expires_in` accepts a `must_revalidate` flag. If true, "must-revalidate"
is added to the Cache-Control header. *fxn*
2012-02-12 07:32:53 -05:00
* Add `date_field` and `date_field_tag` helpers which render an `input[type="date"]` tag *Olek Janiszewski*
2012-02-03 18:10:37 -05:00
* Adds `image_url` , `javascript_url` , `stylesheet_url` , `audio_url` , `video_url` , and `font_url`
to assets tag helper. These URL helpers will return the full path to your assets. This is useful
when you are going to reference this asset from external host. *Prem Sichanugrist*
2012-02-03 11:47:47 -05:00
* Default responder will now always use your overridden block in `respond_with` to render your response. *Prem Sichanugrist*
2012-02-01 16:16:58 -05:00
* Allow `value_method` and `text_method` arguments from `collection_select` and
`options_from_collection_for_select` to receive an object that responds to `:call` ,
such as a `proc` , to evaluate the option in the current element context. This works
the same way with `collection_radio_buttons` and `collection_check_boxes` .
*Carlos Antonio da Silva + Rafael Mendonça França*
* Add `collection_check_boxes` form helper, similar to `collection_select` :
Example:
2012-08-11 12:11:01 -04:00
collection_check_boxes :post, :author_ids, Author.all, :id, :name
# Outputs something like:
< input id = "post_author_ids_1" name = "post[author_ids][]" type = "checkbox" value = "1" / >
< label for = "post_author_ids_1" > D. Heinemeier Hansson< / label >
< input id = "post_author_ids_2" name = "post[author_ids][]" type = "checkbox" value = "2" / >
< label for = "post_author_ids_2" > D. Thomas< / label >
< input name = "post[author_ids][]" type = "hidden" value = "" / >
2012-02-01 16:16:58 -05:00
The label/check_box pairs can be customized with a block.
*Carlos Antonio da Silva + Rafael Mendonça França*
* Add `collection_radio_buttons` form helper, similar to `collection_select` :
Example:
2012-08-11 12:11:01 -04:00
collection_radio_buttons :post, :author_id, Author.all, :id, :name
# Outputs something like:
< input id = "post_author_id_1" name = "post[author_id]" type = "radio" value = "1" / >
< label for = "post_author_id_1" > D. Heinemeier Hansson< / label >
< input id = "post_author_id_2" name = "post[author_id]" type = "radio" value = "2" / >
< label for = "post_author_id_2" > D. Thomas< / label >
2012-02-01 16:16:58 -05:00
The label/radio_button pairs can be customized with a block.
*Carlos Antonio da Silva + Rafael Mendonça França*
2012-02-02 06:23:07 -05:00
* check_box with `:form` html5 attribute will now replicate the `:form`
attribute to the hidden field as well. *Carlos Antonio da Silva*
2012-03-14 19:03:39 -04:00
* Turn off verbose mode of rack-cache, we still have X-Rack-Cache to
check that info. Closes #5245 . *Santiago Pastorino*
2012-01-26 17:46:43 -05:00
* `label` form helper accepts :for => nil to not generate the attribute. *Carlos Antonio da Silva*
2012-01-20 12:27:18 -05:00
* Add `:format` option to number_to_percentage *Rodrigo Flores*
2012-09-24 18:55:52 -04:00
* Add `config.action_view.logger` to configure logger for Action View. *Rafael Mendonça França*
2012-01-18 12:05:36 -05:00
2012-09-24 18:55:52 -04:00
* Deprecated `ActionController::Integration` in favour of `ActionDispatch::Integration` .
2012-01-14 15:03:18 -05:00
2012-09-24 18:55:52 -04:00
* Deprecated `ActionController::IntegrationTest` in favour of `ActionDispatch::IntegrationTest` .
2012-01-14 15:03:18 -05:00
2012-09-24 18:55:52 -04:00
* Deprecated `ActionController::PerformanceTest` in favour of `ActionDispatch::PerformanceTest` .
2012-01-14 15:03:18 -05:00
2012-09-24 18:55:52 -04:00
* Deprecated `ActionController::AbstractRequest` in favour of `ActionDispatch::Request` .
2012-01-14 15:03:18 -05:00
2012-09-24 18:55:52 -04:00
* Deprecated `ActionController::Request` in favour of `ActionDispatch::Request` .
2012-01-14 15:03:18 -05:00
2012-09-24 18:55:52 -04:00
* Deprecated `ActionController::AbstractResponse` in favour of `ActionDispatch::Response` .
2012-01-14 15:03:18 -05:00
2012-09-24 18:55:52 -04:00
* Deprecated `ActionController::Response` in favour of `ActionDispatch::Response` .
2012-01-14 15:03:18 -05:00
2012-09-24 18:55:52 -04:00
* Deprecated `ActionController::Routing` in favour of `ActionDispatch::Routing` .
2012-01-14 15:03:18 -05:00
2012-09-24 18:55:52 -04:00
* `check_box helper` with `:disabled => true` will generate a disabled
hidden field to conform with the HTML convention where disabled fields are
not submitted with the form. This is a behavior change, previously the hidden
tag had a value of the disabled checkbox. *Tadas Tamosauskas*
2012-01-05 17:35:10 -05:00
2012-01-31 12:46:02 -05:00
* `favicon_link_tag` helper will now use the favicon in app/assets by default. *Lucas Caton*
2012-03-17 12:36:24 -04:00
* `ActionView::Helpers::TextHelper#highlight` now defaults to the
HTML5 `mark` element. *Brian Cardarella*
2012-02-05 12:08:21 -05:00
2012-08-28 15:15:12 -04:00
Please check [3-2-stable ](https://github.com/rails/rails/blob/3-2-stable/actionpack/CHANGELOG.md ) for previous changes.