aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/asset_tag_helper_test.rb
Commit message (Collapse)AuthorAgeFilesLines
...
* Work around the two connection per host browser limit: use asset%d.myapp.com ↵Jeremy Kemper2007-02-181-0/+7
| | | | | | to distribute asset requests among asset[0123].myapp.com. Use a DNS wildcard or CNAMEs to map these hosts to your asset server. See http://www.die.net/musings/page_load_time/ for background. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6161 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use a consistent load path to avoid double requires. Fix some scattered Ruby ↵Jeremy Kemper2007-01-281-1/+1
| | | | | | warnings. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6057 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* test javascript include with and without application.jsJeremy Kemper2007-01-081-20/+13
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5875 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Lookup the mime type for #auto_discovery_link_tag in the Mime::Type class. ↵Rick Olson2007-01-081-0/+1
| | | | | | Closes #6941 [Josh Peek] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5874 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add more extensive documentation to the AssetTagHelper. Closes #6452 [Bob ↵Rick Olson2007-01-051-105/+66
| | | | | | Silva] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5859 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that setting RAILS_ASSET_ID to "" should not add a trailing slash ↵David Heinemeier Hansson2006-10-221-1/+8
| | | | | | after assets (closes #6454) [BobSilva/chrismear] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5335 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that AssetTagHelper#image_tag and others using compute_public_path ↵David Heinemeier Hansson2006-09-041-0/+9
| | | | | | should not modify the incoming source argument (closes #5102) [eule@space.ch] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5003 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Deprecated the auto-appending of .png to AssetTagHelper#image_tag calls that ↵David Heinemeier Hansson2006-09-041-7/+10
| | | | | | doesn't have an extension [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4999 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Skip complete URLsDavid Heinemeier Hansson2006-03-291-0/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4099 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added automated timestamping to AssetTagHelper methods for stylesheets, ↵David Heinemeier Hansson2006-03-291-0/+16
| | | | | | javascripts, and images when Action Controller is run under Rails [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4098 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that default image extension was not appended when using a full URL ↵David Heinemeier Hansson2006-03-021-1/+2
| | | | | | 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
* Added support to AssetTagHelper#javascript_include_tag for having :defaults ↵David Heinemeier Hansson2006-02-281-2/+4
| | | | | | 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
* The image_tag helper is not converting the options hash to symbols (closes ↵David Heinemeier Hansson2006-02-261-0/+2
| | | | | | #3615) [agkr@pobox.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3660 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Change javascript_include_tag :defaults to not use script.aculo.us loader, ↵Thomas Fuchs2005-11-011-2/+19
| | | | | | 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
* Don't prepend the asset host if the string is already a fully-qualified URLJamis Buck2005-09-301-0/+10
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2430 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update script.aculo.us to 1.5_rc2, and Prototype to 1.4.0_pre7Thomas Fuchs2005-09-281-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2386 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added test coverage for stylesheet_path to show that it works as requested ↵Marcel Molina2005-09-281-0/+4
| | | | | | in #1471. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2383 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that auto_discovery_link_tag couldn't take a string as the URLDavid Heinemeier Hansson2005-09-221-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2296 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Optimized tag_options to not sort keys, which is no longer necessary when ↵David Heinemeier Hansson2005-09-201-14/+22
| | | | | | 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
* Fixed all AssetHelper methods to work with relative paths, such that ↵David Heinemeier Hansson2005-09-081-0/+1
| | | | | | 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
* Added tag_options as a third parameter to ↵David Heinemeier Hansson2005-06-211-0/+6
| | | | | | AssetHelper#auto_discovery_link_tag to control options like the title of the link #1430 [kevin.clark@gmail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1460 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed image_tag so an exception is not thrown just because the image is ↵David Heinemeier Hansson2005-06-161-5/+3
| | | | | | missing and alt value can't be generated #1395 [Marcel] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1434 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that compute_public_path should recognize external URLs, so ↵David Heinemeier Hansson2005-05-191-0/+1
| | | | | | image_tag("http://www.example.com/images/icon.gif") is not prefixed with the relative url path #1254 [victor-ronr-trac@carotena.net] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1321 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added that both AssetHelper#stylesheet_link_tag and ↵David Heinemeier Hansson2005-05-031-0/+2
| | | | | | AssetHelper#javascript_include_tag now accept an option hash as the last parameter, so you can do stuff like: stylesheet_link_tag "style", :media => "all" git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1281 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added AssetTagHelper#image_path, AssetTagHelper#javascript_path, and ↵David Heinemeier Hansson2005-04-171-0/+48
| | | | | | AssetTagHelper#stylesheet_path #1110 [Larry Halff] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1176 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed a few testsDavid Heinemeier Hansson2005-04-101-4/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1126 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Changed .htaccess to allow dispatch.* to be called from a sub-directory as ↵David Heinemeier Hansson2005-03-201-3/+84
| | | | | | part of the push with Action Pack to make Rails work on non-vhost setups #826 [Nicholas Seckar/Tobias Luetke] Fixed routing and helpers to make Rails work on non-vhost setups #826 [Nicholas Seckar/Tobias Luetke] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@945 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Moved image_tag to AssetTagHelperDavid Heinemeier Hansson2005-03-141-0/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@899 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use example.com domains to make rails RFC2606 compliant #708David Heinemeier Hansson2005-03-061-4/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@840 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added AssetTagHelper that provides methods for linking a HTML page together ↵David Heinemeier Hansson2005-02-191-0/+45
with other assets, such as javascripts, stylesheets, and feeds. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@689 5ecf4fe2-1ee6-0310-87b1-e25e094e27de