Rick Olson
17e1f7b354
trivial documentation patch for #pagination_links [Francois Beausoleil] closes #4258
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3899 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-16 06:38:08 +00:00
David Heinemeier Hansson
7d06259be9
Dots in template path should not trip up rendering ( closes #4244 ) [lmarlow@yahoo.com]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3884 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-16 02:51:19 +00:00
David Heinemeier Hansson
75b8a66638
The mere existance of a rjs file shouldnt cause the layout to disappear. Made it easier to specify a :with on observer_field
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3858 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-13 03:27:26 +00:00
Sam Stephenson
3589871de8
Added simple alert() notifications for RJS exceptions when config.action_view.debug_rjs = true. Set debug_rjs = true for the default development environment.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3856 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-13 02:11:59 +00:00
David Heinemeier Hansson
955583aed4
Prefer application/xml over text/xml for charset reasons
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3855 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-13 02:05:59 +00:00
David Heinemeier Hansson
06c2b43f36
Rendering xml shouldnt happen inside any layout. Added class proxying to RJS, so you can call page.field.clear("my_field") to generate Field.clear("my_field");. Added :content_type option to render, so you can change the content type on the fly. Do type/subtype reordering of Accept header preferences for xml types (aka make Firefox work with respond_to). CHANGED DEFAULT: The default content type for .rxml is now application/xml instead of type/xml, see http://www.xml.com/pub/a/2004/07/21/dive.html for reason
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3852 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-13 01:33:57 +00:00
David Heinemeier Hansson
de37f7df4f
Mime types are separated by a comma, not semicolon, in the Accept header. Also switch all internal configuration of mime types away from strings and over to Mime::Type [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3847 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-12 16:03:44 +00:00
David Heinemeier Hansson
6e3e5cadfb
Added option to render action/template/file of a specific extension (and here by template type). This means you can have multiple templates with the same name but a different extension [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3841 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-12 01:56:55 +00:00
David Heinemeier Hansson
1c16649b48
Added better support for using the same actions to output for different sources depending on the Accept header [DHH] Added Base#render(:xml => xml) that works just like Base#render(:text => text), but sets the content-type to text/xml and the charset to UTF-8 [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3838 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-11 01:23:29 +00:00
Thomas Fuchs
130001c377
Update to latest script.aculo.us trunk, fixes possible issue with Effect.Appear on IE
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3824 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-09 09:59:29 +00:00
Rick Olson
043bee3338
Re-added mixed-in helper methods for the JavascriptGenerator. Moved JavascriptGenerators methods to a module that is mixed in after the helpers are added. Also fixed that variables set in the enumeration methods like #collect are set correctly. Documentation added for the enumeration methods [Rick Olson].
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3814 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-08 05:21:27 +00:00
David Heinemeier Hansson
cd989472a5
Added Hash#to_xml and Array#to_xml that makes it much easier to produce XML from basic structures [DHH] Moved Jim Weirich's wonderful Builder from Action Pack to Active Support (it's simply too useful to be stuck in AP) [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3812 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-08 02:56:25 +00:00
David Heinemeier Hansson
08967ead78
Allow method chaining in RJS elements [Rick Olson]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3801 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-06 19:45:02 +00:00
Sam Stephenson
382741f289
Update Prototype for beta gems
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3795 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-06 17:33:25 +00:00
David Heinemeier Hansson
16b9409a9c
allow RJS enum values to be passed to visual_effect() and other scriptaculous helpers #4080 [Rick Olson]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3772 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-05 06:42:58 +00:00
David Heinemeier Hansson
e3bfd08cbc
Fixed Effect.Appear in effects.js to work with floats in Safari ( closes #3524 , #3813 , #3044 ) [Thomas Fuchs]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3757 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-04 17:12:03 +00:00
David Heinemeier Hansson
2e67f1adc8
RJS now does enumerations, baby! ( closes #3876 ) [Rick Olson]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3754 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-03 19:34:23 +00:00
David Heinemeier Hansson
3fb29b172f
Fixed that default image extension was not appended when using a full URL with AssetTagHelper#image_tag ( closes #4032 , #3728 ) [rubyonrails@beautifulpixel.com]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3740 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-02 01:54:53 +00:00
David Heinemeier Hansson
fed41fbe8b
Added support to AssetTagHelper#javascript_include_tag for having :defaults appear anywhere in the list, so you can now make one call ala javascript_include_tag(:defaults, "my_scripts") or javascript_include_tag("my_scripts", :defaults) depending on how you want the load order ( closes #3506 ) [Bob Silva]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3696 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-28 05:16:34 +00:00
Thomas Fuchs
d0bd952aff
Added support for visual effects scoped queues to the visual_effect helper #3530 [Abdur-Rahman Advany]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3687 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-27 10:37:59 +00:00
David Heinemeier Hansson
3d1b51b441
Added .rxml (and any non-rhtml template, really) supportfor CaptureHelper#content_for and CaptureHelper#capture #3287 [Brian Takita]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3669 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-26 19:47:50 +00:00
Thomas Fuchs
d11f8d5516
Added script.aculo.us drag and drop helpers to RJS [Thomas Fuchs]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3667 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-26 14:20:21 +00:00
David Heinemeier Hansson
6a83ebfe70
Fixed form_for regression ( closes #3962 ) [t.lucas@toolmantim.com]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3666 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-26 07:23:42 +00:00
David Heinemeier Hansson
d94af9a61f
mail_to shouldnt include language attribute in script tag #3364 [donald.piret@synergetek.be]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3662 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-26 01:10:05 +00:00
David Heinemeier Hansson
231a464d4e
Fixed that form elements would strip the trailing [] from the first parameter ( closes #3545 ) [ruby@bobsilva.com]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3661 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-26 01:07:05 +00:00
David Heinemeier Hansson
06dd7b8efa
The image_tag helper is not converting the options hash to symbols ( closes #3615 ) [agkr@pobox.com]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3660 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-26 00:55:22 +00:00
Thomas Fuchs
bb7408fd4c
Update script.aculo.us to V1.5.3 [Thomas Fuchs]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3634 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-22 09:59:22 +00:00
Thomas Fuchs
523d54b56d
Added various InPlaceEditor options, #3746 , #3891 , #3896 , #3906
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3626 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-21 10:52:35 +00:00
Thomas Fuchs
e8c4cc9503
Update script.aculo.us in Rails trunk to V1.5.2
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3595 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-14 10:29:12 +00:00
David Heinemeier Hansson
c7f5a848f1
Refactor the Javascript proxy into a hierarchy for element/collection [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3592 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-14 04:39:44 +00:00
David Heinemeier Hansson
35b74de770
Use real assigns instead of a method call [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3591 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-12 21:31:28 +00:00
David Heinemeier Hansson
5f2292ce39
replace_element was renamed replace [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3590 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-12 21:19:49 +00:00
David Heinemeier Hansson
022a8fc681
Wups, committed too much
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3589 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-12 20:21:01 +00:00
David Heinemeier Hansson
8dc4f46233
Also support replace and replace_html and some refactoring in JavaScriptElementProxy [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3588 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-12 20:10:59 +00:00
David Heinemeier Hansson
ebdb766e79
Added element and collection proxies to RJS [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3587 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-12 18:48:08 +00:00
Sam Stephenson
838ec413eb
Add JavaScriptGenerator#replace_element for replacing an element's "outer HTML". Closes #3246 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3579 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-12 01:30:13 +00:00
Nicholas Seckar
324e5eb571
Fix form_for brokenness due to a shortage of parenthesis
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3575 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-12 00:41:50 +00:00
David Heinemeier Hansson
a8a1d11d77
Expose object and object_name from the FormBuilder [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3574 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-12 00:28:45 +00:00
David Heinemeier Hansson
a04a849d15
Clean up style around form_for and friends a bit
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3573 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-12 00:22:24 +00:00
Nicholas Seckar
344ae8326a
Remove over-engineered form_for code for a leaner implementation.
...
Document form_for's :html option.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3572 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-11 23:29:53 +00:00
Sam Stephenson
803b9a41af
Add :html option for specifying form tag options in form_for
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3552 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-08 20:46:15 +00:00
Marcel Molina
ba2619f539
Don't interpret the :value option on text_area as an html attribute. Set the text_area's value. Closes #3752 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3550 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-08 05:13:21 +00:00
Nicholas Seckar
7139e2a0e1
Fix remote_form_for creates a non-ajax form. Closes #3741 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3545 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-06 05:06:36 +00:00
Nicholas Seckar
9474fe72dd
Add :builder => option to form_for and friends. Closes 3268.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3536 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-04 19:58:45 +00:00
Sam Stephenson
9c52a41241
Add the ability to call JavaScriptGenerator methods from helpers called in update blocks
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3476 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-01-23 17:09:15 +00:00
Sam Stephenson
7d0d0f0edd
Add render(:update) to ActionView::Base
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3473 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-01-23 16:36:40 +00:00
Sam Stephenson
5f44411d94
Backing out of [3470] until visual_effect, et al can work
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3471 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-01-23 07:27:24 +00:00
Sam Stephenson
8436147825
Add the ability to call JavaScriptGenerator methods from helpers called in update blocks
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3470 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-01-23 06:52:26 +00:00
David Heinemeier Hansson
5436ffa840
Treat timestamps like datetimes for scaffolding purposes ( closes #3388 ) [Maik Schmidt]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3457 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-01-21 23:46:56 +00:00
David Heinemeier Hansson
50e2df4268
Fix IE bug with link_to "something", :post => true ( closes #3443 ) [Justin Palmer]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3453 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-01-21 23:36:38 +00:00
Michael Koziarski
e3898491f2
make error_messages_for return "" for nil objects
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3438 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-01-19 08:47:18 +00:00
Marcel Molina
363b79f942
Refactor human_size to exclude decimal place if it is zero.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3437 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-01-19 05:31:48 +00:00
Sam Stephenson
75784f6bcc
Update to Prototype 1.5.0_rc0
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3435 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-01-18 23:14:47 +00:00
David Heinemeier Hansson
e87c4f064f
Dont repeat the button_to method
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3425 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-01-16 05:04:19 +00:00
Marcel Molina
0a7af125ca
Documentation typo fix. Closes #2367 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3407 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-01-13 04:43:33 +00:00
Marcel Molina
489ace60fb
Remove Upload Progress. Closes #2871 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3406 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-01-13 04:27:53 +00:00
Marcel Molina
2b7f1cdbe9
Fix typo in function name mapping in auto_complete_field. Closes #3446 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3401 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-01-13 01:37:30 +00:00
Marcel Molina
b30ccefe6f
Have the form builder output radio button, not check box, when calling the radio button helper. Closes #3331 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3383 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-01-06 17:49:14 +00:00
David Heinemeier Hansson
10cf9ecafc
Added assignment of the Autocompleter object created by JavaScriptMacroHelper#auto_complete_field to a local javascript variables [DHH] Added :on option for PrototypeHelper#observe_field that allows you to specify a different callback hook to have the observer trigger on [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3378 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-01-03 04:11:51 +00:00
David Heinemeier Hansson
987d9dbf31
Added JavaScriptHelper#button_to_function that works just like JavaScriptHelper#link_to_function but uses a button instead of a href [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3367 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-12-31 04:31:10 +00:00
David Heinemeier Hansson
d7487fffe5
Made Field.focus in prototype friendly to effects by adding optional delay parameter [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3366 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-12-31 04:14:07 +00:00
David Heinemeier Hansson
89d8afa2c4
Added that JavaScriptHelper#link_to_function will honor existing :onclick definitions when adding the function call [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3365 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-12-31 03:51:43 +00:00
David Heinemeier Hansson
341d34cd50
Added that JavaScriptHelper#link_to_function will honor existing :onclick definitions when adding the function call [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3364 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-12-31 03:50:08 +00:00
David Heinemeier Hansson
00541f263b
Added :disable_with option to FormTagHelper#submit_tag to allow for easily disabled submit buttons with different text [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3361 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-12-30 19:41:25 +00:00
Scott Barron
63c822afb2
Make auto_link handle nil by returning quickly if blank?
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3359 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-12-30 18:45:04 +00:00
Marcel Molina
839f03b7d0
Make auto_link match urls with a port number specified.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3351 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-12-26 19:31:40 +00:00
Thomas Fuchs
eb53467bdf
Added support for toggling visual effects to ScriptaculousHelper::visual_effect, #3323 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3350 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-12-25 18:53:22 +00:00
Thomas Fuchs
1455697ee8
Update to script.aculo.us to 1.5.0 rev. 3343
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3349 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-12-25 18:23:25 +00:00
David Heinemeier Hansson
cfb0babec3
Added :select option for JavaScriptMacroHelper#auto_complete_field that makes it easier to only use part of the auto-complete suggestion as the value for insertion [Thomas Fuchs]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3348 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-12-24 22:58:33 +00:00
David Heinemeier Hansson
ac963f0623
Added :select option for JavaScriptMacroHelper#auto_complete_field that makes it easier to only use part of the auto-complete suggestion as the value for insertion [Thomas Fuchs]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3345 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-12-24 01:04:08 +00:00
David Heinemeier Hansson
96536bebae
Added :select option for JavaScriptMacroHelper#auto_complete_field that makes it easier to only use part of the auto-complete suggestion as the value for insertion [Thomas Fuchs]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3344 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-12-24 00:52:14 +00:00
David Heinemeier Hansson
4e76ae3904
Added delayed execution of Javascript from within RJS ( closes #3264 ) [devslashnull@gmail.com]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3335 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-12-22 18:05:50 +00:00
David Heinemeier Hansson
43f6643b8b
Fix form_for use of datetime_select and date_select as well as a few stylistic upgrades to AR
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3330 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-12-21 06:16:42 +00:00
David Heinemeier Hansson
71dcc6982e
Added toggle to compliment show and hide for RJS
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3329 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-12-20 23:25:05 +00:00
Sam Stephenson
c61d27d0c7
Add additional RJS functionality: alert, redirect_to, call, assign, and <<
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3319 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-12-20 00:20:33 +00:00
Nicholas Seckar
6b38b9739a
Documentation fixes
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3318 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-12-19 01:52:05 +00:00
Sam Stephenson
a5a54ae9e3
Update to Prototype 1.4.0 final
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3297 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-12-13 17:51:17 +00:00
David Heinemeier Hansson
e5d9ad3e29
Added option inheritance for find calls on has_and_belongs_to_many and has_many assosociations [DHH] Added option to specify :group, :limit, :offset, and :select options from find on has_and_belongs_to_many and has_many assosociations [DHH]
...
Added form_remote_for (form_for meets form_remote_tag) [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3287 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-12-13 00:39:51 +00:00
Thomas Fuchs
f7e39c4ec7
Update to script.aculo.us 1.5.0_rc6
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3285 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-12-12 17:14:05 +00:00
David Heinemeier Hansson
6b7e51df51
Added form_remote_for [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3269 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-12-10 00:41:32 +00:00
Marcel Molina
96c29ab890
Fix docs for text_area_tag. Closes #3083 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3207 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-12-02 04:37:53 +00:00
Marcel Molina
139e2c4aad
Change form_for and fields_for method signatures to take object name and object as separate arguments rather than as a Hash.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3201 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-12-02 00:37:33 +00:00
Jeremy Kemper
d933627044
Introduce :selected option to the select helper. Allows you to specify a selection other than the current value of object.method. Specify :selected => nil to leave all options unselected. Closes #2991 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3174 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-23 21:59:20 +00:00
Thomas Fuchs
d958f22ecc
Make javascript_include_tag :default behave correctly with application.js, fixes #2986
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3164 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-22 23:18:53 +00:00
Jeremy Kemper
130c493a4f
FormHelper correctly passes its object through select, collection_select, country_select, and time_zone_select.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3156 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-22 01:32:40 +00:00
Sam Stephenson
f212c88315
Pass multiple arguments to Element.show and Element.hide in JavaScriptGenerator instead of using iterators
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3116 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-21 01:54:36 +00:00
Jeremy Kemper
cd8686b456
r3173@asus: jeremy | 2005-11-18 23:34:41 -0800
...
Ticket 2731 - sessions
r3185@asus: jeremy | 2005-11-19 18:02:51 -0800
eliminate const redefinition warning
r3186@asus: jeremy | 2005-11-19 19:25:50 -0800
Use :database option instead of :dbfile
r3187@asus: jeremy | 2005-11-19 19:34:31 -0800
Data writer assigns to instance var. Since nothing is calling write_attribute on the data column except for marshal_data, simplify data reader to lazy-unmarshal the data column (no worrying whether it's already unmarshaled)
r3188@asus: jeremy | 2005-11-19 19:35:40 -0800
Explicitly create the session class so that subsequent requests for the session can find it in the database. This is masking a problem with the controller losing its @session instance var and therefore requesting a new session.
r3189@asus: jeremy | 2005-11-19 19:36:40 -0800
Using create unnecessarily broadens the existing duck-typing so use new + save instead.
r3194@asus: jeremy | 2005-11-19 20:28:17 -0800
Test creation of another instance while first instance is still active. Should return same session_id.
r3195@asus: jeremy | 2005-11-19 20:39:45 -0800
Always create new AR sessions rather than trying too hard to avoid database traffic. References #2731 .
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3100 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-20 04:41:59 +00:00
Sam Stephenson
d777e506f2
Update to Prototype 1.4.0_rc4. Closes #2943 (old Array.prototype.reverse behavior can be obtained by passing false as an argument)
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3091 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-19 06:59:07 +00:00
Sam Stephenson
b3c65bc849
Use Element.update('id', 'html') instead of uid=501(sam) gid=501(sam) groups=501(sam), 81(appserveradm), 79(appserverusr), 80(admin).innerHTML = 'html' in JavaScriptGenerator#replace_html so that script tags are evaluated
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3086 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-18 18:03:45 +00:00
Jeremy Kemper
fb3fc46cdd
Correct length for the truncate text helper. Closes #2913 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3080 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-18 01:25:39 +00:00
Sam Stephenson
173544f56c
Update to Prototype 1.4.0_rc3. Closes #1893 , #2505 , #2550 , #2748 , #2783 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3079 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-18 00:53:11 +00:00
Marcel Molina
06e74b6c91
Add support for new rjs templates which wrap an update_page block.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3078 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-17 21:28:59 +00:00
Jeremy Kemper
e9a4e4d88b
Inline a method used by render_partial. Closes #2881 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3073 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-17 19:08:53 +00:00
Jeremy Kemper
98898ed798
Correct time_zone_options_for_select docs. Closes #2892 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3062 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-16 21:57:30 +00:00
Jeremy Kemper
c63f3bdc7a
Inline commonly-called template presence checks. Closes #2882 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3057 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-16 09:03:00 +00:00
Jeremy Kemper
ede505592c
Avoid logging code if logger is nil. Closes #2881 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3056 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-16 09:00:23 +00:00
Jeremy Kemper
eb1dd6a206
Use Set instead of Array to speed up prototype helper include? calls. Closes #2880 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3055 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-16 08:53:26 +00:00
Jeremy Kemper
05d580dffa
Remove invalid links in ActionView::Helpers::UrlHelper documentation. Closes #1961 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3041 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-15 09:42:32 +00:00
Sam Stephenson
d99ed9bd6a
Refactored JavaScriptHelper into PrototypeHelper and ScriptaculousHelper. Added PrototypeHelper::JavaScriptGenerator and PrototypeHelper#update_page for easily modifying multiple elements in an Ajax response.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3036 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-14 22:28:47 +00:00
Thomas Fuchs
415d27490f
Update trunk to latests script.aculo.us
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3033 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-14 20:49:10 +00:00
Tobias Lütke
037f61c8e9
* Updated docs for in_place_editor, fixes a couple bugs and offers extended support for external controls [Justin Palmer] closes #2870
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3032 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-14 20:46:32 +00:00
Jeremy Kemper
44ca6f4b62
Only include builtin filters whose filenames match /^[a-z][a-z_]*_helper.rb$/ to avoid including operating system metadata such as ._foo_helper.rb. References #2855 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3007 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-13 22:21:19 +00:00
David Heinemeier Hansson
b0c23e589f
hidden_field can also be in fields_for
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3006 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-13 12:54:00 +00:00
David Heinemeier Hansson
c6435b77de
Make form_for work with additional options
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3005 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-13 12:53:03 +00:00
David Heinemeier Hansson
947cec29d5
Added FormHelper#form_for and FormHelper#fields_for that makes it easier to work with forms for single objects also if they don't reside in instance variables [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3003 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-13 11:13:11 +00:00
Jeremy Kemper
b81c46e6bd
options_for_select allows any objects which respond_to? :first and :last rather than restricting to Array and Range. Closes #2824 . References [2126].
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2977 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-10 22:08:20 +00:00
Jeremy Kemper
adba181060
The auto_link text helper accepts an optional block to format the link text for each url and email address. References #2628 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2963 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-10 06:04:50 +00:00
David Heinemeier Hansson
3c31062c3d
Added request as instance method to views, so you can do <%= request.env["HTTP_REFERER"] %>, just like you can already access response, session, and the likes [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2918 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-07 13:51:56 +00:00
David Heinemeier Hansson
01cfd2b00a
Fix docs ( closes #2725 )
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2906 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-07 09:36:43 +00:00
Thomas Fuchs
d47f3bcbad
Change javascript_include_tag :defaults to not use script.aculo.us loader, which facilitates the use of plugins for future script.aculo.us and third party javascript extensions, and provide register_javascript_include_default for plugins to specify additional JavaScript files to load. Removed scriptaculous.js, slider.js and builder.js
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2835 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-01 06:34:40 +00:00
Thomas Fuchs
56ae4ab547
Added support for the queue option on visual_effect
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2807 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-29 15:01:39 +00:00
Thomas Fuchs
d8f0a3f93c
Update script.aculo.us to V1.5_rc4
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2802 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-29 11:48:53 +00:00
Nicholas Seckar
f2c920ec24
Fix line number detection and escape RAILS_ROOT in backtrace Regexp
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2773 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-27 21:58:39 +00:00
Sam Stephenson
f15819e8f0
Bump to Prototype 1.4.0_rc2
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2755 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-26 22:07:27 +00:00
David Heinemeier Hansson
4e9bc0f02d
Added TextHelper#strip_tags for removing HTML tags from a string (using HTMLTokenizer) ( closes #2229 ) [marcin@junkheap.net]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2750 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-26 13:26:04 +00:00
Sam Stephenson
d82c51bb16
Upgrade to Prototype 1.4.0_rc1
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2672 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-18 02:48:33 +00:00
Nicholas Seckar
139ba0aaf6
Fix spelling error
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2667 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-17 18:25:03 +00:00
Nicholas Seckar
cb8bb70aa7
Make string-keys locals assigns optional
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2665 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-17 15:51:07 +00:00
Nicholas Seckar
46f76ea549
Improve line number detection for template errors
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2655 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-16 18:37:11 +00:00
Jamis Buck
1c057b7237
Update/clean up AP documentation (rdoc)
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2649 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-16 15:42:03 +00:00
Sam Stephenson
0453525f8d
Merge remainder of util.js into effects.js
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2647 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-16 14:45:17 +00:00
Sam Stephenson
22b77daeee
Upgrade to Prototype 1.4.0_rc0
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2638 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-16 03:25:40 +00:00
Nicholas Seckar
e625d27633
Add temporary support for passing locals to render using string keys
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2630 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-16 00:04:33 +00:00
Nicholas Seckar
3625dfaad5
Clean up error pages by providing better backtraces
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2624 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-15 19:05:15 +00:00
Thomas Fuchs
09aae0a275
Updated and clarified documentation for JavaScriptHelper to be more concise about the various options for including the JavaScript libs
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2608 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-15 05:08:59 +00:00
Michael Koziarski
59709d9188
Ensure radio_button works as expected with values other than strings.
...
Thanks to:
* grant.mcinnes@utoronto.ca
* rails@jeffcole.net
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2573 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-14 02:07:51 +00:00
Jeremy Kemper
acb80e3d0e
Escape query strings in the href attribute of URLs created by url_helper. #2333
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2572 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-13 22:44:45 +00:00
Nicholas Seckar
2cad95d851
Improved line number reporting for template errors
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2571 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-13 21:58:20 +00:00
Sam Stephenson
f49dc37e71
Wrap javascript_tag contents in a CDATA section and add a cdata_section method to TagHelper. Closes #1691 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2543 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-12 22:47:39 +00:00
Marcel Molina
7aa1ba7ff0
Misc doc fixes (typos/grammar/etc). Closes #2445 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2537 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-12 03:43:28 +00:00
Jamis Buck
8946804b8a
Make xyz_tag(..., :id => "foo") work again
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2535 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-12 01:05:29 +00:00
Marcel Molina
064842f516
Convert boolean form options form the tag_helper. Recloses #809 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2523 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-10 21:34:51 +00:00
Sam Stephenson
0886bb391d
Fixed that an instance variable with the same name as a partial should be implicitly passed as the partial :object. Closes #2269 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2522 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-10 20:35:13 +00:00
Sam Stephenson
e3655ef733
Fix Element.toggle logic
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2521 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-10 19:09:40 +00:00
Thomas Fuchs
7d101d5840
Update Prototype to V1.4.0_pre11, script.aculo.us to [2502] and fix the rails generator to include the new .js files [Thomas Fuchs]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2503 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-09 16:56:23 +00:00
David Heinemeier Hansson
f13534e65f
Forced newer versions of RedCloth to use hard breaks [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2437 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-02 20:24:53 +00:00
David Heinemeier Hansson
810ebf7c6a
Forced newer versions of RedCloth to use hard breaks [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2436 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-02 20:21:43 +00:00
David Heinemeier Hansson
c69160a90d
Better logging about partials when logger to to debug
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2432 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-01 19:00:06 +00:00
Thomas Fuchs
e7afaf62bd
Added new scriptaculous options for auto_complete_field #2343 [m.stienstra@fngtps.com]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2431 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-01 05:43:53 +00:00
Jamis Buck
1e08d11579
Don't prepend the asset host if the string is already a fully-qualified URL
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2430 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-30 19:10:20 +00:00
David Heinemeier Hansson
562b69829d
Not the avenue we want to go down
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2424 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-30 08:13:46 +00:00
David Heinemeier Hansson
438db964ad
Testing should also use a default REQUEST_METHOD
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2408 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-29 08:43:17 +00:00
Thomas Fuchs
4d6ad9c48b
Updated rdoc for javascript_include_tag
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2395 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-28 10:55:57 +00:00
David Heinemeier Hansson
981763e53e
My life for white space
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2393 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-28 09:06:34 +00:00
Thomas Fuchs
516dc2c0f1
Update script.aculo.us to 1.5_rc2, and Prototype to 1.4.0_pre7
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2386 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-28 08:20:47 +00:00
Nicholas Seckar
564077373d
Streamline render process, code cleaning. Closes #2294 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2368 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-27 16:45:39 +00:00
Marcel Molina
b54560600b
Have text helpers use built in Regexp.escape rather than home grown alternative
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2350 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-26 20:49:52 +00:00
Jeremy Kemper
9852197f83
r3573@asus: jeremy | 2005-09-26 11:38:44 -0700
...
Ticket 1507 - IE file uploads give the filename as a full Windows path, but Ruby on UNIX doesn't know how to File.basename('C:\\blah\blah.foo').
r3574@asus: jeremy | 2005-09-26 14:32:11 -0700
Get rid of constant redefine warning.
r3575@asus: jeremy | 2005-09-26 14:33:07 -0700
Override the file upload's original_filename singleton method in CGIMethods.get_typed_value.
r3576@asus: jeremy | 2005-09-26 14:33:49 -0700
Unit test overridden original_filename against normal filenames and full Windows paths.
r3577@asus: jeremy | 2005-09-26 14:33:57 -0700
Update change log.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2345 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-26 17:59:46 +00:00
David Heinemeier Hansson
2a31691ee2
Fixed that auto_discovery_link_tag couldn't take a string as the URL
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2296 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-22 11:37:16 +00:00
David Heinemeier Hansson
7f26415d3c
Optimized tag_options to not sort keys, which is no longer necessary when assert_dom_equal and friend is available #1995 [skae]. Added assert_dom_equal and assert_dom_not_equal to compare tags generated by the helpers in an order-indifferent manner #1995 [skae]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2271 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-20 07:54:55 +00:00
Jamis Buck
390280b842
Make the truncate() helper multi-byte safe (assuming $KCODE has been set to something other than "NONE") #2103
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2265 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-19 21:36:36 +00:00
David Heinemeier Hansson
7a4c88157f
Doc fix #2197
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2255 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-17 06:39:54 +00:00
David Heinemeier Hansson
9acb1f95c9
Make upload progress not throw JavaScript errors when there is no progress bar #2208 [Thomas Fuchs]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2252 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-16 08:44:38 +00:00
Jamis Buck
5e3364ef45
More auto-link fixes (to include query strings in autolinked text)
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2241 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-14 12:07:05 +00:00
Jamis Buck
b97f4e4597
Fix autolinking to not include trailing tags as part of the URL
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2237 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-13 18:48:34 +00:00
David Heinemeier Hansson
de4cd789ae
Make periodically_call_remote use type="text/javascript" on script tag #2171
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2217 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-12 05:40:27 +00:00
David Heinemeier Hansson
2fe8610673
Added TextHelper#cycle to cycle over an array of values on each hit (useful for alternating row colors etc) #2154 [dave-ml@dribin.org]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2213 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-12 05:26:25 +00:00
David Heinemeier Hansson
b5629c31be
Fixed docs #1884
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2196 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-11 09:13:05 +00:00
David Heinemeier Hansson
a0ecced15b
Fixed docs #1886
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2195 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-11 09:12:22 +00:00
David Heinemeier Hansson
2be3c00863
Split macros test into their own suite
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2194 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-11 08:40:46 +00:00
David Heinemeier Hansson
a15068726f
Added :multipart option to ActiveRecordHelper#form to make it possible to add file input fields #2034 [jstirk@oobleyboo.com]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2193 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-11 08:39:23 +00:00
David Heinemeier Hansson
c1007377ba
Added in-place editing support in the spirit of auto complete with ActionController::Base.in_place_edit_for, JavascriptHelper#in_place_editor_field, and Javascript support from script.aculo.us #2038 [Jon Tirsen] Moved auto-completion and in-place editing into the Macros module and their helper counterparts into JavaScriptMacrosHelper
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2191 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-11 07:52:53 +00:00
David Heinemeier Hansson
b62243a5cc
Added :disabled option to all data selects that'll make the elements inaccessible for change #2167 , #253 [eigentone]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2184 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-11 05:58:00 +00:00
David Heinemeier Hansson
da7ba91d86
Fixed that TextHelper#auto_link_urls would include punctuation in the links #2166 , #1671 [eigentone]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2183 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-11 05:53:52 +00:00
David Heinemeier Hansson
afbfde9357
Fixed that number_to_currency(1000, {:precision => 0})) should return "$1,000", instead of "$1,000." #2122 [sd@notso.net]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2170 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-09 08:43:02 +00:00
David Heinemeier Hansson
7dbf051e54
Fix docs #2136 [coffee2code]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2165 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-09 08:11:53 +00:00
David Heinemeier Hansson
e54b4d3b54
Allow link_to_remote to use any DOM-element as the parent of the form elements to be submitted #2137 [erik@ruby-lang.nl]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2164 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-09 08:10:20 +00:00
David Heinemeier Hansson
e3c02d8c66
Fixed that render :partial would fail when :object was a Hash (due to backwards compatibility issues) #2148 [Sam Stephenson]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2160 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-09 07:27:44 +00:00
David Heinemeier Hansson
46110aa689
Fixed JavascriptHelper#auto_complete_for to only include unique items #2153 [Thomas Fuchs]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2159 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-09 07:25:58 +00:00
David Heinemeier Hansson
079d8f4028
Fixed that onclick would be overridden even when special features werent used
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2158 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-08 17:54:16 +00:00
David Heinemeier Hansson
3c3d936f4d
Fixed all AssetHelper methods to work with relative paths, such that javascript_include_tag('stdlib/standard') will look in /javascripts/stdlib/standard instead of '/stdlib/standard/' #1963
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2156 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-08 16:39:06 +00:00
David Heinemeier Hansson
7b235f0213
Use this.href, not unexisting url
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2150 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-07 13:04:09 +00:00
David Heinemeier Hansson
7e3dc807df
Added :post option to UrlHelper#link_to that makes it possible to do POST requests through normal ahref links using Javascript
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2149 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-07 12:56:33 +00:00
David Heinemeier Hansson
258bacbf82
Added :popup option to UrlHelper#link_to #1996 [gabriel.gironda@gmail.com]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2129 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-04 00:33:45 +00:00
David Heinemeier Hansson
3f14b1e94e
Updated the options_for_select to deal with the fact that Strings now implement :first
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2126 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-03 21:30:54 +00:00
David Heinemeier Hansson
51a1af96d4
Added note about how pre-packaged error functionality can be easier to recreate yourself than attempt to overly tailor #1489
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2112 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-03 07:43:15 +00:00
Jamis Buck
fd9c15e420
Fix observe_field to fall back to event-based observation if frequency <= 0 #1916 [michael@schubert.cx]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2104 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-02 14:06:17 +00:00
Jamis Buck
97adfdaa65
* Allow use of the :with option for submit_to_remote #1936 [jon@instance-design.co.uk]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2103 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-02 13:56:38 +00:00
Jamis Buck
e758c2e9db
Yield @content_for_ variables to templates #2058 [Sam Stephenson]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2094 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-01 21:51:27 +00:00
Jamis Buck
01af965a3e
Make rendering an empty partial collection behave like :nothing => true #2080 [Sam Stephenson]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2093 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-01 21:43:38 +00:00
Nicholas Seckar
a8b9fc9f2a
Add dummy ActionView::Base.cache_template_loading accessor -- will be made functional again in short time
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2066 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-08-29 15:12:48 +00:00
David Heinemeier Hansson
b80f0e2ff3
Made Upload Progress work with Prototype 1.4.0 and add some documentation for it #1847 , #1876 [Thomas Fuchs/Sean Treadway]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2059 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-08-27 06:30:33 +00:00
Nicholas Seckar
68c90ab019
Render refactoring; render error reporting fixes
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2058 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-08-26 22:37:36 +00:00
Jamis Buck
82f44f3144
Added :use_short_month option to select_month helper to show month names as abbreviations
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2033 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-08-22 14:47:16 +00:00
Jamis Buck
8910de6a54
Make link_to escape the javascript in the confirm option #1964 [nicolas.pouillard@gmail.com]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2009 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-08-14 08:43:07 +00:00
David Heinemeier Hansson
9fad3251d3
More fixes, but still broken
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1948 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-07-27 14:17:47 +00:00
David Heinemeier Hansson
c22ebd909d
Fixing the fix, but not quite
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1946 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-07-27 13:55:56 +00:00
David Heinemeier Hansson
3d2f0001ea
Fixed bug when a partial render was passing a local with the same name as the partial
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1942 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-07-27 12:24:14 +00:00
David Heinemeier Hansson
11a51648ad
Document the design of the compiled templates approach and tweak the expiration check
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1929 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-07-26 12:37:21 +00:00
David Heinemeier Hansson
4f40b2d8fb
Improved performance of test app req/sec with ~10% refactoring the render method #1823 [Stefan Kaes]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1915 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-07-24 16:45:39 +00:00
David Heinemeier Hansson
3ccea931fa
Simplify content_for implementation
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1914 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-07-24 15:27:47 +00:00
David Heinemeier Hansson
1ae0a53d86
Fixed regression for content_for #1820 [Stefan Kaes]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1911 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-07-24 13:20:29 +00:00
David Heinemeier Hansson
023c4d68cc
Caching template logging goes DEBUG
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1903 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-07-23 06:27:52 +00:00
David Heinemeier Hansson
7fe3fd23b3
Extended template caching to rxml and attempted to fix periodical caching issue [Stephan Kaes]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1902 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-07-23 06:14:10 +00:00
David Heinemeier Hansson
98fb9e5093
Fixed call on inline with new render_template #1808 [Michael Shuerig]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1898 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-07-22 20:46:36 +00:00
David Heinemeier Hansson
c19ca5148f
Fixed changing templates in development mode [Stephan Kaes]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1891 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-07-22 15:51:34 +00:00
David Heinemeier Hansson
3835f6ab25
Changed caching/expiration/hit to report using the DEBUG log level and errors to use the ERROR log level instead of both using INFO
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1889 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-07-22 11:28:58 +00:00
David Heinemeier Hansson
06160fd3e8
Use debug to report compilation of erb templates
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1885 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-07-22 10:11:36 +00:00
David Heinemeier Hansson
95cd46c5ec
Fixed compile of template fails if template name contains non-word character #1802
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1883 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-07-22 07:39:48 +00:00
David Heinemeier Hansson
ecb0e39741
Added additional documentation to FormTagHelper #1788 [jon@instance-design.co.uk]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1880 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-07-22 06:47:03 +00:00