David Heinemeier Hansson
|
01b1a87729
|
Added reusable reloading support through the inclusion of the Relodable module that all subclasses of ActiveRecord::Base, ActiveRecord::Observer, ActiveController::Base, and ActionMailer::Base automatically gets [DHH]. Added auto-loading support for classes in modules, so Conductor::Migration will look for conductor/migration.rb and Conductor::Database::Settings will look for conductor/database/settings.rb [Nicholas Seckar]. Refactored extensions to module, class, and object in active support [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3493 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-01-29 00:37:39 +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 |
|
David Heinemeier Hansson
|
ea30f7353b
|
Raise a RedirectBackError if redirect_to :back is called when theres no HTTP_REFERER defined (closes #3049) [kevin.clark@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3459 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-01-22 01:52:23 +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 |
|
Michael Koziarski
|
12e0cb7971
|
Fix broken autocompleter test.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3410 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-01-13 07:26:21 +00:00 |
|
Michael Koziarski
|
8edbdfc9f4
|
Fix for failing auto complete unit test
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3409 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-01-13 07:21:08 +00:00 |
|
Michael Koziarski
|
543f789240
|
Fix failing test due to hard coded year
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3408 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-01-13 07:08:55 +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
|
f4f7e750dc
|
Add test for min_chars auto_complete_field fix. Closes #2929.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3405 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-01-13 04:00:11 +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
|
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
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
|
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 |
|
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 |
|
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 |
|
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 |
|
David Heinemeier Hansson
|
8d9ee72a78
|
Fixed more Windows tests
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2659 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-10-16 22:08:11 +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 |
|
Tobias Lütke
|
f60f76eab0
|
modified javascript_helper testcase to back up #2097
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2550 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-10-13 17:39:14 +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 |
|
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 |
|
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 |
|
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 |
|
Marcel Molina
|
1e87d6e887
|
Added test coverage for stylesheet_path to show that it works as requested in #1471.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2383 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-09-28 02:08:58 +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 |
|
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
|
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 |
|