Commit Graph

2551 Commits

Author SHA1 Message Date
José Valim
de69c798db Fix nested attributes with specified collection. 2010-02-07 13:45:47 +01:00
José Valim
22c0390085 Add a test which ensures namespaced roots. 2010-02-06 11:52:28 +01:00
Yehuda Katz
5384df5589 Updates subscriber test for new output 2010-02-05 22:48:13 -08:00
Jeremy Kemper
31f8a59c16 Test that csrf meta content is html-escaped, too 2010-02-04 18:03:06 -08:00
Jeremy Kemper
6bf79f02be Revert dumb test 2010-02-04 17:49:23 -08:00
Jeremy Kemper
3062bc70ef HTML-escape csrf meta contents 2010-02-04 17:45:43 -08:00
Jeremy Kemper
2191aa47ac Expose CSRF param name also 2010-02-04 15:26:24 -08:00
Jeremy Kemper
78de17cf70 Expose CSRF tag for UJS adapters 2010-02-04 14:58:32 -08:00
José Valim
95eadb39bd Configuration values should be on AV::Base. 2010-02-02 11:32:28 +01:00
Prem Sichanugrist
c01014ac1c Modify the behavior of radio_button_tag to use sanitize_to_id for consistency [#1792 status:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-02-02 10:17:26 +01:00
Jeremy Kemper
e5ab4b0d07 Convert to class_attribute 2010-02-01 02:02:42 -08:00
Yehuda Katz
2092351652 Add support for compile-time <%= raw %> 2010-01-31 23:42:35 -08:00
Santiago Pastorino
1adfb92135 Deleted all references to ActionView::SafeBuffer in favor of ActiveSupport::SafeBuffer
Signed-off-by: Yehuda Katz <wycats@Yehuda-Katz.local>
2010-01-31 22:14:18 -08:00
Yehuda Katz
4cbb9db0a5 For performance reasons, you can no longer call html_safe! on Strings. Instead, all Strings are always not html_safe?. Instead, you can get a SafeBuffer from a String by calling #html_safe, which will SafeBuffer.new(self).
* Additionally, instead of doing concat("</form>".html_safe), you can do
    safe_concat("</form>"), which will skip both the flag set, and the flag
    check.
  * For the first pass, I converted virtually all #html_safe!s to #html_safe,
    and the tests pass. A further optimization would be to try to use
    #safe_concat as much as possible, reducing the performance impact if
    we know up front that a String is safe.
2010-01-31 19:39:13 -08:00
Carl Lerche
9f01dff9c2 Get rails tests running on bundler 0.9 2010-01-31 19:13:43 -08:00
Erik St. Martin
e1618b9ac3 data-remote needs to be on the form and not the submit when using button_to :remote=>true 2010-01-31 14:43:07 -06:00
Stephen St. Martin
a9e89e82b6 add :remote option to form_tag 2010-01-31 13:46:33 -06:00
Stephen St. Martin
a3349f845f form_for should pass :remote to form_tag through html_options 2010-01-31 13:46:27 -06:00
Mikel Lindsaar
2ebea1c02d deOMGifying Railties, Active Support, and Action Pack 2010-01-31 09:46:30 -08:00
José Valim
b3a028259f Improve missing template error messages a little bit. 2010-01-31 10:24:38 +01:00
Joshua Peek
48459c8278 Add rel=nofollow on non get remote links 2010-01-30 20:26:30 -06:00
Joshua Peek
31820b9dd6 Generate UJS code for :disable_with 2010-01-30 20:22:15 -06:00
Erik St. Martin
392817cf11 updating link_to and button_to to support :remote => true and other options such as :confirm in a unobtrusive manor
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2010-01-30 19:44:35 -06:00
Joshua Peek
7d9ed8eec1 Include prototype ujs adapter with new apps 2010-01-30 19:20:49 -06:00
Joshua Peek
9c2c307ee4 Move form_remote_tag and remote_form_for into prototype_legacy_helper 2010-01-30 15:42:30 -06:00
Joshua Peek
779094a602 Move button_to_remote and submit_to_remote into prototype_legacy_helper
plugin
2010-01-30 15:28:31 -06:00
Joshua Peek
b3787643ec Move link_to_function and link_to_remote into prototype_legacy_helper
plugin
2010-01-30 15:20:00 -06:00
Joshua Peek
2de311a093 Drop AjaxHelper 2010-01-30 15:08:29 -06:00
Joshua Peek
95f317b020 Move periodically_call_remote into prototype_legacy_helper plugin 2010-01-30 15:01:02 -06:00
Joshua Peek
61c9b16487 Move observe_field and observe_form to prototype_legacy_helper plugin 2010-01-30 14:53:43 -06:00
Joshua Peek
4f7a85d2c6 Revert "Merge branch 'rails/master' into ujs"
This reverts commit 3aa1ea1ae4, reversing
changes made to 2c12a71378.

Conflicts:

	actionpack/lib/action_view/helpers/javascript_helper.rb
	actionpack/lib/action_view/helpers/url_helper.rb
	actionpack/test/template/url_helper_test.rb
2010-01-30 14:39:59 -06:00
Joshua Peek
ffc10731c3 Revert "fixed tests to also look for rails.js when using javascript_include_tag :defaults"
This reverts commit 7f181e4750.
2010-01-30 14:39:59 -06:00
José Valim
c164ca1efb Bring helpers_dir deprecation back. 2010-01-30 16:49:58 +01:00
Joshua Peek
bddd1bb626 Deprecate link_to :popup 2010-01-29 20:00:55 -06:00
Erik St. Martin
7f181e4750 fixed tests to also look for rails.js when using javascript_include_tag :defaults 2010-01-29 16:33:27 -06:00
José Valim
cc2642b220 Added :format and :locale options to render. 2010-01-29 17:51:06 +01:00
José Valim
986a4e616b Fix rendering of layouts. 2010-01-29 17:51:05 +01:00
José Valim
ba82eb2efa Get rid of AM warnings in AP test suite. 2010-01-29 17:51:05 +01:00
José Valim
3f84091937 ActionMailer should depend just on AbstractController. 2010-01-29 17:51:05 +01:00
Stefan Penner
2e338aed70 updated tests + docs, plus minor inconsistency fixes 2010-01-27 12:44:36 -06:00
Stefan Penner
1b8ced53c4 Added regression tests that discovered the previous issue. 2010-01-27 12:44:35 -06:00
Erik St. Martin
c0f63883ea :href should be comming in through html_options and not options 2010-01-27 12:44:35 -06:00
Erik St. Martin
f661a3bc59 removing container inline js function of observed elements :function callback 2010-01-27 12:44:35 -06:00
Erik St. Martin
0215466832 periodically_call_remote does not need data-observe=true 2010-01-27 12:44:35 -06:00
Erik St. Martin
ad26b3934e test to go with last commit, explicit :href for link_to_remote 2010-01-27 12:44:35 -06:00
Stephen St. Martin
8b7cd5ae7e fix duplidate data-submit attribute, submit_to_remote should test url 2010-01-27 12:44:34 -06:00
Erik St. Martin
44542bd7da account for the fact a few options may be passed as symbols and need to be converted to string 2010-01-27 12:44:34 -06:00
Erik St. Martin
06dd23d671 removing Prototype inline js for attributes for :with and :condition, it now is free form js that can be placed there, also moved :submit out into AjaxHelper, updated tests to reflect changes 2010-01-27 12:44:34 -06:00
Stephen St. Martin
a5e9d033e8 add missing test for :with option to link_to_remote 2010-01-27 12:44:33 -06:00
Stephen St. Martin
133f6011d0 add missing :before and :after callbacks for link_to_remote 2010-01-27 12:44:33 -06:00