aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/url_helper.rb
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #10971 from dtaniwaki/escape_link_to_unlessRafael Mendonça França2013-06-241-1/+1
| | | | Always escape the result of link_to_unless method
* Accept :remote as symbol in link_to optionsRiley2012-10-061-1/+3
| | | | | Accept either :remote or 'remote' in both the html_options and (url_)options hash arguments to link_to.
* Revert "Deprecate `:confirm` in favor of `:data => { :confirm => 'Text' }` ↵Rafael Mendonça França2012-08-011-18/+8
| | | | | | | | | | | option" Revert "Deprecate `:disable_with` in favor of `'data-disable-with'` option for `button_to` and `submit_tag` helpers." This reverts commit fc092a9cba5fceec38358072e50e09250cf58840. This reverts commit e9051e20aeb2c666db06b6217954737665878db7. This reverts commit d47d6e7eda3aa3e6aa28d0c17ac6801234bb97d1. This reverts commit 21141e777bdce8534e3755c8de7268324b3d8714.
* Deprecate `:confirm` in favor of `:data => { :confirm => 'Text' }` optionCarlos Galdino2012-06-051-2/+7
| | | | | | | | | | | | This deprecation applies to: `button_to` `button_tag` `image_submit_tag` `link_to` `submit_tag` As :confirm is an UI specific option is better to use the data attributes, teaching users about unobtrusive JavaScript and how Rails works with it.
* Deprecate `:disable_with` for `button_tag` tooCarlos Galdino + Rafael Mendonça França2012-05-141-1/+1
|
* Deprecate `:disable_with` in favor of `'data-disable-with'` option for ↵Carlos Galdino + Rafael Mendonça França2012-05-141-6/+11
| | | | `button_to` and `submit_tag` helpers.
* Fix small typo in mail_to docs in url_helper.rbSimon Baird2012-01-191-1/+1
|
* 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>
* Call html_escape in ERB::Util module and don't mix it in in the helpersSantiago Pastorino2010-10-181-5/+6
|
* Refactor a bit this code to add data-confirm and data-disable-withSantiago Pastorino2010-10-111-12/+4
|
* data-disable-with in button_to helperPaco Guzman2010-10-111-0/+6
| | | | | | [#4993 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* refactoring to use fewer intermediate variablesAaron Patterson2010-10-041-11/+12
|
* cleaning up more crazy!Aaron Patterson2010-10-041-3/+3
|
* deleting more crazyAaron Patterson2010-10-041-6/+4
|
* dry up some crazy codesAaron Patterson2010-10-041-8/+6
|
* Performance: refactor convert_options_to_data_attributes.thedarkone2010-09-271-10/+14
|
* Remove dead code.thedarkone2010-09-271-2/+2
|
* Clean up url_for.thedarkone2010-09-271-3/+1
|
* Start cleanup of deprecations in ActionViewCarlos Antonio da Silva2010-09-061-6/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Refactor RoutesProxy to avoid using _with_routes in helpersPiotr Sarnacki2010-09-031-3/+5
|
* Fix generating urls with mounted helpers in view contextPiotr Sarnacki2010-09-031-1/+3
| | | | | | | | | | There were actually 2 problems with this one: * script_name was added to options as a string and then it was used in RouteSet#url_for with usage of <<, which was changing the original script_name * the second issue was with _with_routes method. It was called in RoutesProxy to modify _routes in view_context, but url_helpers in views is just delegating it to controller, so another _with_routes call is needed there
* Merge remote branch 'docrails/master'Xavier Noria2010-09-031-1/+1
|\
| * fix typo(?)Akira Matsuda2010-09-011-1/+1
| |
* | Remove unnecessary code from UrlHelper#link_to.yury2010-09-011-7/+2
|/ | | | | | convert_options_to_data_attributes always returns not nil stringified html_options [#5445 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Fix API docs for button_to optionsJaime Iniesta2010-08-311-2/+3
|
* Restore consistency with the rest of the doc.Rémy Coutable2010-08-251-2/+2
|
* Fixed a missing simple quote.Rémy Coutable2010-08-251-1/+1
|
* options could be of any kind of Hash (Hash, HashWithIndifferentAccess or ↵Santiago Pastorino2010-07-211-1/+1
| | | | OrderedHash) this way we keep the properties of the options passed as an argument
* Use capture instead of yield in link_to_unless.José Valim2010-07-211-1/+1
| | | | [#5162 state:resolved]
* Unify routes naming by renaming router to routesPiotr Sarnacki2010-07-021-1/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>