aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/url_helper.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add back `:disable_with` and change deprecation horizon to 4.1Carlos Galdino + Rafael Mendonça França2012-07-211-2/+17
|
* Add back `:confirm` and change deprecation horizon to 4.1Carlos Galdino + Rafael Mendonça França2012-07-211-0/+19
|
* Remove `:confirm` in favor of `:data => { :confirm => 'Text' }` optionCarlos Galdino2012-07-181-22/+16
| | | | | | | | | This applies to the following helpers: `button_to` `button_tag` `image_submit_tag` `link_to` `submit_tag`
* Fix misprint in UrlHelper moduleAlexey Vakhov2012-06-181-1/+1
|
* Simplify link_to using content_tagCarlos Antonio da Silva2012-05-311-12/+6
| | | | Add some tests for link_to with blocks and escaping content.
* Make link_to arguments explicitCarlos Antonio da Silva2012-05-311-8/+4
|
* Make button_to arguments explicit and refactor a bitCarlos Antonio da Silva2012-05-311-10/+6
| | | | Prefer Hash#[]= over Hash#merge when setting a value.
* accept a block in button_to helperSergey Nartimov2012-05-301-3/+28
| | | | | | | | | | | | | | | | 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>"
* Revert "Revert "Remove `:disable_with` in favor of `'data-disable-with'` ↵José Valim2012-05-151-4/+2
| | | | | | | | | 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-2/+4
| | | | | | | | | | `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.
* Use merge! instead reverse_merge! hereSantiago Pastorino2012-05-141-1/+1
|
* Remove `:disable_with` in favor of `'data-disable-with'` option from ↵Carlos Galdino + Rafael Mendonça França2012-05-141-4/+2
| | | | `submit_tag`, `button_tag` and `button_to` helpers.
* Switch token_tag if blockOscar Del Ben2012-05-051-3/+3
|
* fix doc [ci skip]Vijay Dev2012-05-041-1/+1
|
* Update documentation for button_to.Shalva Usubov2012-05-041-1/+6
|
* Remove unnecessary in HTML 5 type attribute with default valueAndrey A.I. Sitnik2012-04-051-2/+2
|
* use content_tag in button_to helperSergey Nartimov2012-03-141-2/+3
|
* Remove Active Resource source files from the repositoryPrem Sichanugrist2012-03-131-1/+1
| | | | | | | | | | Dear Active Resource, It's not that I hate you or anything, but you didn't get much attention lately. There're so many alternatives out there, and I think people have made their choice to use them than you. I think it's time for you to have a big rest, peacefully in this Git repository. I will miss you, @sikachu.
* Optimize url helpers.Sergey Nartimov + José Valim2012-03-021-9/+14
|
* consistently mention first patch, then putXavier Noria2012-02-241-1/+1
| | | | | | There was a mix, sometimes patch first, sometimes put first. Use always patch first, since this is going to be the primary verb for updates.
* Add config.default_method_for_update to support PATCHDavid Lee2012-02-221-4/+4
| | | | | | | | | | | | | | | | PATCH is the correct HTML verb to map to the #update action. The semantics for PATCH allows for partial updates, whereas PUT requires a complete replacement. Changes: * adds config.default_method_for_update you can set to :patch * optionally use PATCH instead of PUT in resource routes and forms * adds the #patch verb to routes to detect PATCH requests * adds #patch? to Request * changes documentation and comments to indicate support for PATCH This change maintains complete backwards compatibility by keeping :put as the default for config.default_method_for_update.
* Refactor button_to to avoid calling method#to_s twiceCarlos Antonio da Silva2012-01-251-23/+13
| | | | | Reorganize button_to implementation a bit. Also small refactor on current_page? method.
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-01-191-1/+1
|\
| * Fix small typo in mail_to docs in url_helper.rbSimon Baird2012-01-191-1/+1
| |
* | Extract method_tagRafael Mendonça França2012-01-191-1/+5
| |
* | Refactor button_to helper to use token_tag methodRafael Mendonça França2012-01-191-4/+10
|/
* remove unused private methodsSergey Nartimov2012-01-131-16/+0
|
* use Rack::Utils.escape_pathSergey Nartimov2012-01-131-1/+1
|
* Refactor url_for helper to check for nil in the case statement onlyCarlos Antonio da Silva2012-01-121-8/+8
|
* Make button_to helper support "form" option which is the form attributes.Wen-Tien Chang2011-09-291-5/+15
|
* Merge pull request #2815 from avakhov/current-page-non-get-requestsSantiago Pastorino2011-09-051-0/+8
|\ | | | | current_page? returns false for non-GET requests
| * current_page? returns false for non-GET requestsAlexey Vakhov2011-09-021-0/+8
| |
* | if ... nil? is more expensive than unlessMilan Dobrota2011-09-041-3/+3
|/
* Use typewriter styling on url_for in documentationasmega2011-08-211-1/+1
|
* Missed a few instances of British English spelling in the last commitOemuer Oezkir2011-07-241-1/+1
| | | | oh and obviously I meant according to Webster, not Weber
* Changed a few instances of of words in the API docs written in British ↵Oemuer Oezkir2011-07-241-4/+4
| | | | | | English to American English(according to Weber)
* Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2011-06-231-10/+10
|\
| * grammar changes in named routes description and clarity around possibilities ↵Matt Jankowski2011-06-221-10/+10
| | | | | | | | for options
* | Minor refactorSantiago Pastorino2011-06-231-2/+2
| |
* | Allow additional link relations when using method attribute with link_toJosh2011-06-201-1/+3
|/
* Add proper fix to `mail_to` helper.Prem Sichanugrist2011-06-081-2/+2
| | | | | * Fix the problem on manipulating on the `ActiveSupport::SafeBuffer` * Make sure that we run `escape_javascript` on the `String`, to avoid unexpected behavior.
* Remove extra white spaces on ActionPack docs.Sebastian Martinez2011-05-231-6/+6
|
* Documentation fix. Corrected a copy/paste mistake for link_to_if documentation.Ryan Sandridge2011-05-081-1/+1
|
* Replace example hostname with "example.com".Joost Baaij2011-04-211-1/+1
| | | | | The hostname used in these comments actually exists, which is undesirable. See also RFC 2606.
* Fixing more spacing inconsistenciesMatt Duncan2011-04-151-2/+2
|
* Merge branch 'master' of github.com:lifo/docrailsRyan Bigg2011-04-051-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 'master' of github.com:lifo/docrails: (57 commits) Made the defaults section a little more readable and more to the point, giving a overview of the possibilities. Added information about default values added .'s to headings in the initialization textile page s/ERb/ERB/g (part II) s/ERb/ERB/g Bump up erubis to 2.7.0 Implicit actions named not_implemented can be rendered Gem::Specification#has_rdoc= is deprecated since rubygems 1.7.0 default_executable is deprecated since rubygems 1.7.0 Trivial fix to HTTP Digest auth MD5 example Moved Turn activation/dependency to railties fix typo Direct logging of Active Record to STDOUT so it's shown inline with the results in the console [DHH] Add using Turn with natural language test case names if the library is available (which it will be in Rails 3.1) [DHH] require turn only for minitest Use Turn to format all Rails tests and enable the natural language case names Improve docs. pass respond_with options to controller render when using a template for api navigation only try to display an api template in responders if the request is a get or there are no errors when using respond_with with an invalid resource and custom options, the default response status and error messages should be returned ...
| * s/ERb/ERB/gAkira Matsuda2011-04-031-1/+1
| | | | | | | | | | The author of ERB sais, his eRuby implementation was originally named "ERb/ERbLight" and then renamed to "ERB" when started bundled as a Ruby standard lib. http://www2a.biglobe.ne.jp/~seki/ruby/erb.html
* | Correct documentation on url_for. It doesn't call to_s, but rather to_paramRyan Bigg2011-04-051-1/+4
|/
* Be sure to javascript_escape the email address to prevent apostrophes ↵Michael Koziarski2011-02-081-5/+6
| | | | | | inadvertently causing javascript errors. This fixes CVE-2011-0446
* Allow customization of form class for button_toAndrei Bocan2011-02-011-3/+13
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>