aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/CHANGELOG.md
Commit message (Collapse)AuthorAgeFilesLines
...
* | tweaks to the AP changelog [ci skip]Xavier Noria2013-02-211-9/+3
| |
* | Merge pull request #9361 from senny/improved_match_shorthand_syntaxAndrew White2013-02-211-0/+14
|\ \ | | | | | | determine the match shorthand target early.
| * | determine the match shorthand target early.Yves Senn2013-02-211-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | Closes #7554. This patch determines the `controller#action` directly in the `match` method when the shorthand syntax is used. this prevents problems with namespaces and scopes.
* | | Revert "Revert "Merge pull request #4803 from lucascaton/master""Santiago Pastorino2013-02-211-0/+2
| |/ |/| | | | | This reverts commit 6871bd9818a9a7d9d8c7e21e253d64c0410fde1d.
* | Remove not necessary changelog about time zone array mutationCarlos Antonio da Silva2013-02-211-8/+0
| | | | | | | | | | | | | | | | This seemed to be introduced in master by 9dd64f2e0c1b3ce85b503b0f81c50c93f89ffbcd, so there's no need to add a changelog entry for fixing it. [ci skip]
* | tweaks to the AP changelog [ci skip]Xavier Noria2013-02-211-42/+27
|/
* Revert "Merge pull request #4803 from lucascaton/master"Santiago Pastorino2013-02-201-2/+0
| | | | | | | | | | | | | | | This reverts commit bb842e8d2111e50b21a14b8bd6d89371a4b9cd68, reversing changes made to 40c287c7983c20c498f6a8a2ea49e9a6455347f7. This was causing issues in one of our apps we just upgraded. ActionController::RoutingError: No route matches [GET] "/images/favicon.ico" favicon_link_tag now returns '/images/favicon.ico' and in 3.2 returned '/favicon.ico' Browsers by default look for favicon.ico in the root directory Conflicts: actionpack/CHANGELOG.md actionpack/lib/action_view/helpers/asset_tag_helper.rb
* Remove XML Parser from ActionDispatchPrem Sichanugrist2013-02-201-3/+8
| | | | | If you want an ability to parse XML parameters, please install `actionpack-xml_parser` gem.
* Fix time_zone_options_for_select to not mutate TimeZones arrayBrian McManus2013-02-191-0/+8
| | | | | | | | | | Previous implementation of time_zone_options_for_select did not dup the ActiveSupport::TimeZone.all array. When :priority_zones were provided the method would reject! the zones from the memoized TimeZones array thus affecting future requests to the server. Essentially whatever zones were specified as :priority_zones would show up for the first request but then disappear from the time zone options on future requests.
* moves a CHANGELOG entry from AR to APXavier Noria2013-02-191-0/+4
|
* Add message when you have no routes defined.Steve Klabnik2013-02-181-0/+6
| | | | | | Print a message in both `rake routes` and at GET "/rails/info/routes" that lets you know you have no routes defined, as well as linking to the Rails Guide on the topic.
* Improve changelog entry from #9221 [ci skip]Carlos Antonio da Silva2013-02-111-15/+13
|
* Improve img alt attribute for screen readersthenickcox2013-02-091-0/+21
| | | | | | | | | | | | Currently, the img_alt method in ActionView keeps underscores in the alt attribute. Because underscores are pronounced in Apple's VoiceOver Utility, this has serious implications for accessibility. This patch makes underscored or hyphenated file names (both common in projects) read more naturally in screen readers by replacing them with spaces. See method documentation for details. Added documentation to image_alt method
* Update actionpack/CHANGELOG.mdRafael Mendonça França2013-02-061-4/+4
| | | [ci skip]
* ruby constant syntax is not supported as routing `:controller` option.Yves Senn2013-02-061-0/+13
| | | | | | | | | | The current implementation only works correctly if you supply the `:controller` with directory notation (eg. `:controller => 'admin/posts'`). The ruby constant notation (eg. `:controller => 'Admin::Posts`) leads to unexpected problems with `url_for`. This patch prints a warning for every non supported `:controller` option. I also added documentation how to work with namespaced controllers. The warning links to that documentation in the rails guide.
* partials inside directory work with `assert_template`Yves Senn2013-02-041-1/+13
| | | | | | | | | | previously when a partial was placed inside a directory (eg. '/dir/_partial'), `assert_template` did not replace the '_' prefix when looking through rendered tempaltes, which resulted in an error. I modified it to replace both, the leading '_' and the last '_' after a '/'.
* Fix markdown syntax in actionpack CHANGELOG.Steve Klabnik2013-02-011-1/+2
| | | | Starting a line with an octothorpe makes an <h1>
* Fix `content_tag_for` with array html option.Semyon Perepelitsa2013-01-311-0/+18
| | | | | | | | | | | | | | | | | It would embed array as string instead of joining it like `content_tag` does: content_tag(:td, class: ["foo", "bar"]){} #=> '<td class="foo bar"></td>' Before: content_tag_for(:td, item, class: ["foo", "bar"]){} #=> '<td class="item [&quot;foo&quot;, &quot;bar&quot;]" id="item_1"></td>' After: content_tag_for(:td, item, class: ["foo", "bar"]){} #=> '<td class="item foo bar" id="item_1"></td>'
* Changelog about BestStandardsSupport removalGuillermo Iguaran2013-01-291-5/+6
|
* s/ERb/ERB/Akira Matsuda2013-01-291-1/+1
|
* Move AS changelog entry to the top, improve AP changelog a bitCarlos Antonio da Silva2013-01-281-4/+4
| | | | [ci skip]
* Added a Changelog entry for fixing HEAD requests.Michiel Sikkes2013-01-281-0/+5
|
* Update actionpack's CHANGELOG for 445f14ePiotr Sarnacki2013-01-211-0/+5
|
* In Browser Path Matching with Javascriptschneems2013-01-201-0/+5
| | | | | | | | | | | When debugging routes ,it can sometimes be difficult to understand exactly how the paths are matched. This PR adds a JS based path matching widget to the `/rails/info/routes` output. You can enter in a path, and it will tell you which of the routes that path matches, while preserving order (top match wins). The matching widget in action: ![](http://f.cl.ly/items/3A2F0v2m3m1Z1p3P3O3k/path-match.gif) Prior to this PR the only way to check matching paths is via mental math, or typing in a path in the url bar and seeing where it goes. This feature will be an invaluable debugging tool by dramatically decreasing the time needed to check a path match. ATP actionpack
* Fix markdown formatting to highlight block in changelog [ci skip]Carlos Antonio da Silva2013-01-201-2/+2
|
* strong parameters filters permitted scalarsXavier Noria2013-01-201-0/+17
|
* Deprecate direct calls to AC::RecordIdentifier.dom_id and dom_classCarlos Antonio da Silva2013-01-161-4/+7
| | | | Also add some generic tests to ensure they're properly deprecated.
* Remove header bloat introduced by BestStandardsSupport middlewareEdward Anderson2013-01-151-0/+5
| | | | The same headers were being duplicated on every request.
* Change the behavior of route defaultsAndrew White2013-01-151-0/+16
| | | | | | | | | | | | | | | | | | | This commit changes route defaults so that explicit defaults are no longer required where the key is not part of the path. For example: resources :posts, bucket_type: 'posts' will be required whenever constructing the url from a hash such as a functional test or using url_for directly. However using the explicit form alters the behavior so it's not required: resources :projects, defaults: { bucket_type: 'projects' } This changes existing behavior slightly in that any routes which only differ in their defaults will match the first route rather than the closest match. Closes #8814
* Add support for other types of routing constraintsAndrew White2013-01-151-0/+15
| | | | | | | | | | | | | | This now allows the use of arrays like this: get '/foo/:action', to: 'foo', constraints: { subdomain: %w[www admin] } or constraints where the request method returns an Fixnum like this: get '/foo', to: 'foo#index', constraints: { port: 8080 } Note that this only applies to constraints on the request - path constraints still need to be specified as Regexps as the various constraints are compiled into a single Regexp.
* Ensure port is set when passed via the process methodAndrew White2013-01-151-0/+5
|
* Rename :value option to :selected, in line with other select helpersColin Burn-Murdoch2013-01-141-1/+1
| | | | | Add tests for time & datetime. Add documentation.
* Allow value to be set on date_selectColin Burn-Murdoch2013-01-131-0/+4
|
* Fix json params parsing regression for non-object JSON content.Dylan Smith2013-01-111-0/+4
| | | | Fixes #8845.
* extract PerformanceTest into rails-performance_tests gemYves Senn2013-01-101-0/+7
|
* view_cache_dependency APIJamis Buck2013-01-081-0/+5
| | | | | | | | | | | | | A declarative API for specifying dependencies that affect template cache digest computation. In your controller, specify any of said dependencies: view_cache_dependency { "phone" if using_phone? } When the block is evaluated, the resulting value is included in the cache digest calculation, allowing you to generate different digests for effectively the same template. (Mostly useful if you're mucking with template load paths.)
* set 'alt' attribute for image_submit_tagNihad Abbasov2013-01-081-0/+5
|
* Do not generate local vars for partials without object or collectionCarlos Antonio da Silva2013-01-081-0/+6
| | | | | | | | | Previously rendering a partial without giving :object or :collection would generate a local variable with the partial name by default. This was noticed due to warnings in Ruby 2.0 of not used variables, which turned out to be the generation of not used variables inside partials that do not contain objects related to them.
* Action Pack changelog improvements [ci skip]Carlos Antonio da Silva2013-01-051-32/+35
|
* display mountable engine routes on RoutingError.Yves Senn2013-01-051-1/+3
|
* Typo and grammar fixes in the ActionPack CHANGELOGMatt Bridges2013-01-031-1/+1
|
* Restore original remote_ip algorithm.Andre Arko2013-01-021-0/+8
| | | | | | | | | | | Proxy servers add X-Forwarded-For headers, resulting in a list of IPs. We remove trusted IP values, and then take the last given value, assuming that it is the most likely to be the correct, unfaked value. See [1] for a very thorough discussion of why that is the best option we have at the moment. [1]: http://blog.gingerlime.com/2012/rails-ip-spoofing-vulnerabilities-and-protection/ Fixes #7979
* Changelog improvements [ci skip]Carlos Antonio da Silva2013-01-021-1/+1
|
* do not append a second slash when usingYves Senn2013-01-021-0/+12
|
* allow toggling dumps instead of just showingGosha Arinich2013-01-021-0/+4
|
* Make content_tag_for work without blockRafael Mendonça França2013-01-021-0/+4
| | | | This is version of #8640 for master
* Add CHANGELOG entry for changes in exception pagesGuillermo Iguaran2013-01-011-0/+6
|
* charset should not be appended for `head` responsesYves Senn2012-12-311-0/+6
| | | | | | | 1) Failure: test_head_created_with_image_png_content_type(RenderTest) [test/controller/render_test.rb:1238]: Expected: "image/png" Actual: "image/png; charset=utf-8"
* Fix CHANGELOG style [ci skip]Rafael Mendonça França2012-12-261-1/+1
|
* return Mime::NullType if format is unknownAngelo Capilleri2012-12-221-0/+5
| | | | | | | | | | If a request has an unknown format, the methods html?, xml?, json? ...etc not raise an Exception. This patch add a class Mime::NullType, that is returned when request.format is unknown and it responds false to the methods that ends with '?' and true to 'nil?'. It refers to #7837, this issue is considered a improvement not a bug.