Carlhuda
fc4582fb66
Final pass at removing the router from a global constant
2010-02-25 17:53:29 -08:00
Carlhuda
226dfc2681
WIP: Remove the global router
2010-02-25 17:53:00 -08:00
Jeremy Kemper
66d537852b
Bump i18n for new public I18n.normalize_keys
2010-02-25 15:06:11 -08:00
Santiago Pastorino
f76eaa4b7c
add time_separator for minutes only if minutes aren't hidden
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-02-25 08:31:02 -08:00
José Valim
df85ab41c1
Renamed LocalizedCache to DetailsCache.
2010-02-24 22:17:26 +01:00
Yehuda Katz
ae933a093d
Fix render :file => "#{Rails.root}/public/404.html", :status => :not_found. Closes #8994
2010-02-23 22:45:42 -08:00
José Valim
35e0975af8
Rename erubis_implementation to erb_implementation.
2010-02-22 13:58:29 +01:00
José Valim
d92e855492
Include missing modules.
2010-02-22 13:13:26 +01:00
Martin Schürrer
6bc24d40d5
Use ActionDispatch::Routing everywhere
2010-02-21 13:43:51 -08:00
José Valim
250c809246
Require persisted? in ActiveModel::Lint and remove new_record? and destroyed? methods. ActionPack does not care if the resource is new or if it was destroyed, it cares only if it's persisted somewhere or not.
2010-02-21 11:12:14 +01:00
Dirkjan Bussink
a0a01d0c98
Remove empty line and trailing hash, breaks documentation generation
...
Signed-off-by: Yehuda Katz <yehudakatz@YK.local >
2010-02-19 13:10:01 -08:00
Santiago Pastorino
e2806929ec
ruby 1.9 array.to_s returns a string representing an escaped array
...
Signed-off-by: Yehuda Katz <yehudakatz@YK.local >
2010-02-18 17:11:32 -08:00
Santiago Pastorino
af05420d6b
i18n translate with arrays issue solved
...
Signed-off-by: Yehuda Katz <yehudakatz@YK.local >
2010-02-18 16:41:00 -08:00
Prem Sichanugrist
f0523f72b4
Rename Rails::Subscriber to Rails::LogSubscriber
2010-02-16 22:36:15 +01:00
Santiago Pastorino and José Ignacio Costa
98a5bf8ff2
Explicit html_escape removed when not needed
...
Signed-off-by: Yehuda Katz <yehudakatz@YK.local >
2010-02-14 12:03:39 -08:00
Santiago Pastorino and José Ignacio Costa
9f1900ec7a
html_escape mail_to when encode javascript and not hex
...
Signed-off-by: Yehuda Katz <yehudakatz@YK.local >
2010-02-14 12:03:28 -08:00
Bruno Michel
f86421fb28
content_tag should escape its input
...
Signed-off-by: Yehuda Katz <yehudakatz@YK.local >
2010-02-14 12:03:28 -08:00
David Heinemeier Hansson
d68f8ba5c3
simple_format returns a safe buffer escaping unsafe input [Santiago Pastorino]
2010-02-12 17:24:04 -08:00
David Heinemeier Hansson
325fa58ef5
Safely concat the ending tag to simple_format or it will be escaped
2010-02-12 16:38:24 -08:00
Gabriel Mansour
b235af702a
Fix pluralization for numbers formatted like '1.00'
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-02-07 12:12:09 -08:00
José Valim
de69c798db
Fix nested attributes with specified collection.
2010-02-07 13:45:47 +01:00
Santiago Pastorino and José Ignacio Costa
e115eb097e
More html_safe strings now use the safe_concat method
...
[#3856 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-02-05 13:28:43 -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
Sam Ruby
5998dd7bb8
Resolve view paths correctly on CygWin
...
Signed-off-by: Mikel Lindsaar <raasdnil@gmail.com >
2010-02-02 12:05:49 +11: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
Santiago Pastorino
f439f1d86f
action_view is requiring the deleted action_view/erb/util.rb file
...
Signed-off-by: Yehuda Katz <wycats@Yehuda-Katz.local >
2010-01-31 20:26:28 -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
Stefan Penner
c493370f33
UJS documentation.
2010-01-31 16:37:33 -06: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
Joshua Peek
59e9478f57
Require ac/test_case from AV::TestCase
2010-01-31 13:38:16 -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
657d85580e
Reorg options_for_javascript and array_or_string_for_javascript
2010-01-30 16:13:49 -06:00
Joshua Peek
570e02c96a
Move button_to_function to prototype helper
2010-01-30 16:08:56 -06:00
Joshua Peek
ff3f779629
Unused JAVASCRIPT_PATH const
2010-01-30 16:04:58 -06:00
Joshua Peek
ad1924125d
Move scripty JSG helpers into scriptaculous_helper.rb
2010-01-30 16:02:26 -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