aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/CHANGELOG.md
Commit message (Collapse)AuthorAgeFilesLines
...
* 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.
* Fix CHANGELOG entry about scope changeGuillermo Iguaran2012-12-201-1/+1
| | | I missed attribution on this :flushed:
* Integrate Journey into Action DispatchAndrew White2012-12-191-0/+5
| | | | | | | | Move the Journey code underneath the ActionDispatch namespace so that we don't pollute the global namespace with names that may be used for models. Fixes rails/journey#49.
* Move changelog entry to the top [ci skip]Carlos Antonio da Silva2012-12-191-5/+5
|
* Remove obfuscation support from mail_to helperNick Reed2012-12-181-0/+5
| | | | | | Removes support for :encode, :replace_at, and :replace_dot options from the mail_to helper. Support for these options has been extracted to the 'actionview-encoded_mail_to' gem.
* handle protocol option in stylesheet_link_tag and javascript_include_tagVasiliy Ermolovich2012-12-181-0/+4
| | | | closes #8388
* Convert changelogs to 1.9 hash style and fix some formatting [ci skip]Carlos Antonio da Silva2012-12-141-26/+26
|
* Merge pull request #8497 from acapilleri/conditional_cacheRafael Mendonça França2012-12-141-3/+15
|\ | | | | | | Removed :if / :unless conditions to fragment cache in favour of *cache_i...
| * Removed :if and :unless from fragment cache option in favour ofAngelo capilleri2012-12-141-3/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cache_if(condition, option, &block) and cache_unless(condition, option, &block). In the PR #8371 was introduced conditional options :if and :unless in the cache method. Example: <%= cache @model, if: some_condition(@model) do %> ... <%end%> This is a good feature but *cache_if* and and *cache_unless* are more concise and close to the standard of rails view helpers (ex: link_to_if and link_to_unless). Example: <%= cache_if condition, @model do %> ... <%end%>
* | Clear url helper methods when routes are reloadedAndrew White2012-12-141-0/+2
| | | | | | | | | | Remove all the old url helper methods when clear! is called on the route set because it's possible that some routes have been removed.
* | Revert "Clear url helpers when reloading routes"Andrew White2012-12-141-4/+0
|/ | | | | | | | | | This doesn't actually remove old url helper methods as they are defined in a different module. This reverts commit 96bcef947bf713b7d9fc88f26dff69f568111262. Conflicts: actionpack/CHANGELOG.md
* Fix rewinding in ActionDispatch::Request#raw_postMatt Venables2012-12-111-0/+5
| | | | | | | | | If env['RAW_POST_DATA'] is nil, #raw_post will attempt to set it to the result of #body (which will return env['rack.input'] if env['RAW_POST_DATA'] is nil). #raw_post will then attempt to rewind the result of another call to #body. Since env['RAW_POST_DATA'] has already been set, the result of #body is not env['rack.input'] anymore. This causes env['rack.input'] to never be rewound.
* Move new CHANGELOG entry to the topRafael Mendonça França2012-12-101-9/+9
|
* Merge pull request #8476 from sheerun/fix/multipart-getRafael Mendonça França2012-12-101-0/+2
|\ | | | | Prevent raising EOFError on multipart GET request.
| * Prevent raising EOFError on multipart GET request.Adam Stankiewicz2012-12-101-0/+2
| | | | | | | | | | | | | | | | | | | | Such request can happen on Internet Explorer. When we redirect after multipart form submission, the request type is changed to GET, but Content-Type is preserved as multipart. GET request cannot have multipart body and that caused Rails to fail. It's similar fix to Rack's one: https://github.com/chneukirchen/rack/blob/8025a4ae9477d1e6231344c2b7d795aa9b3717b6/lib/rack/request.rb#L224
* | Fix READMEDavid Heinemeier Hansson2012-12-071-1/+1
| |
* | Rename all action callbacks from *_filter to *_actionDavid Heinemeier Hansson2012-12-071-0/+27
|/
* Revert "Invert precedence of content in ActionDispatch::Static"Andrew White2012-12-071-7/+0
| | | | This reverts commit c59734f756b79c39486c45273d2cc5d42cd0c864.
* Invert precedence of content in ActionDispatch::StaticAndrew White2012-12-061-0/+7
| | | | | | | | | | This commit inverts the precedence in ActionDispatch::Static so that dynamic content will be served before static content. This is so that precompiled assets do not inadvertently get included when running in development mode - it should have no effect in production where static files are usually handled by the web server. Closes #6421
* Allow fragment cache to accept :if and :unless optionsFabrizio Regini2012-12-051-0/+6
| | | | [Stephen Ausman + Fabrizio Regini]
* Adding filter capability to ActionController logsFabrizio Regini2012-12-051-0/+6
|
* Fixed issue where routes with globs caused constraints on that glob toMaura Fitzgerald2012-12-041-0/+4
| | | | | | be ignored. A regular expression constraint gets overwritten when the routes.rb file is processed. Changed the overwriting to an ||= instead of an = assignment.
* More descriptive error when rendering a partial with `:layout => true`Yves Senn2012-12-021-0/+10
|
* Add CHANGELOG entries for the observes extractionRafael Mendonça França2012-11-291-0/+4
| | | | [ci skip]
* Add CHANGELOG entry for opt-out option of automatic template digestingDrew Ulmer2012-11-271-0/+8
|
* No sort Hash options in #grouped_options_for_selectSergey Kojin2012-11-271-0/+2
|
* Accept symbols as #send_data :disposition valueElia Schito2012-11-271-0/+2
|
* @steveklabnik can't spell 'distance.'Steve Klabnik2012-11-261-1/+1
|
* Add changelog for #7997.Steve Klabnik2012-11-261-0/+2
| | | | This was forgotten when we did the merge.
* assert_template: validating option keysRoberto Soares2012-11-251-1/+3
|
* `assert_template` fails with empty string.Roberto Soares2012-11-231-1/+1
|
* `assert_template` fails with empty string when a template has been renderedRoberto Soares2012-11-231-0/+4
| | | | | | | | For instance, it prevents false positive in this case: file = nil get :index assert_template("#{file}")
* Indent changelog markdown code to highlight correctlyCarlos Antonio da Silva2012-11-221-11/+11
| | | | [ci skip]
* Allow setting a symbol as path in scope on routesGuillermo Iguaran2012-11-211-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | Was surprising found that this example doesn't work: scope :api do resources :users end and the right form to use it is: scope 'api' do resources :users end I think this should work similary as `namespace` where both are allowed. These two are equivalent: namespace :api do resources :users end namespace 'api' do resources :user end
* Correct the use of params options when given to url_forCarlos Antonio da Silva2012-11-191-0/+12
| | | | Merge url for tests and add changelog entry for #8233.
* render every partial with a new `PartialRenderer`.Yves Senn2012-11-191-0/+6
| | | | | | | | This resolves issues when rendering nested partials. Previously the `PartialRenderer` was reused which led to situations where the state of the renderer was reset. Closes #8197
* Move changelog entry from #8235 to the top [ci skip]Carlos Antonio da Silva2012-11-161-7/+7
|
* Introduce `ActionView::Template::Handlers::ERB.escape_whitelist`.Joost Baaij2012-11-161-0/+7
| | | | | | | | | | | This is a list of mime types where template text is not html escaped by default. It prevents `Jack & Joe` from rendering as `Jack &amp; Joe` for the whitelisted mime types. The default whitelist contains text/plain. This follows a whitelist approach where plain text templates are not escaped, and all the others (json, xml) are. The mime type is assumed to be set by the abstract controller.
* Add CHANGELOG entry for #8108 on master too.Rafael Mendonça França2012-11-081-0/+16
| | | | [ci skip]
* Clear url helpers when reloading routesSantiago Pastorino2012-11-021-0/+4
|
* Revert "Merge pull request #7668 from Draiken/fix_issue_6497"Rafael Mendonça França2012-11-021-10/+0
| | | | | | | | | | | | | | This reverts commit f4ad0ebe7a6b17658bddfeb996e3c34835b75623, reversing changes made to 8b2cbb3a832101f0e672ee309beca0f8c555b292. Conflicts: actionpack/CHANGELOG.md REASON: This added introduced a bug when you have a shorthand route inside a nested namespace. See https://github.com/rafaelfranca/rails/commit/281367eb770faf8077c1fd6194188e92ed1637a1