Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | asset helpers should understand scheme-relative URLs | Chad Krsek | 2011-04-26 | 1 | -0/+15 |
| | |||||
* | Revert "asset helpers should understand scheme-relative URLs" | Chad Krsek | 2011-04-25 | 1 | -15/+0 |
| | | | | This reverts commit 057412ce38ead06307a887dca333837a99f84f22. | ||||
* | asset helpers should understand scheme-relative URLs | Chad Krsek | 2011-04-25 | 1 | -0/+15 |
| | |||||
* | Make static faster as we don't have to serve multiple paths anymore. | José Valim | 2011-04-15 | 1 | -23/+0 |
| | |||||
* | javascript_include_tag shouldn't raise if you register an expansion key with ↵ | Santiago Pastorino | 2011-02-28 | 1 | -2/+10 |
| | | | | nil value | ||||
* | Add tests for register expansion methods with key = [] | Santiago Pastorino | 2011-02-28 | 1 | -2/+12 |
| | |||||
* | Applied changes to stylesheet_link_tag from javascript_include_tag which ↵ | Josh Kalderimis | 2011-02-13 | 1 | -0/+23 |
| | | | | corrects issues with ordering and duplicates. | ||||
* | This corrects two issues with javascript_include_tag, the order at which ↵ | Josh Kalderimis | 2011-02-13 | 1 | -1/+24 |
| | | | | | | | | they are expanded, and removing duplicates. When individual js assets are specified, they will override the order of the same asset specified in an expansion. [#5938 state:resolved] | ||||
* | Allow registering javascript/stylesheet_expansions to existing symbols | Santiago Pastorino | 2010-12-22 | 1 | -0/+19 |
| | |||||
* | Do not use the same hash instance for expansions [#6114 state:resolved] | Piotr Sarnacki | 2010-12-22 | 1 | -0/+8 |
| | | | | | Using the same hash instance makes using the same expansions for both javascripts and stylesheets. | ||||
* | Fix AssetIncludeTag ensuring that files are in the wrong directory [#6015 ↵ | Henning Koch | 2010-11-19 | 1 | -0/+44 |
| | | | | | | state:resolved] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | incorporated most of the feedback from José | Josh Kalderimis | 2010-11-16 | 1 | -2/+2 |
| | |||||
* | removed an assert from a test as it was testing a private method | Josh Kalderimis | 2010-11-16 | 1 | -1/+0 |
| | |||||
* | provide better error message if path is uri [#5914 state:resolved] | Neeraj Singh | 2010-11-11 | 1 | -0/+11 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Use parentheses when using assert_match followed by a regexp to avoid warnings. | Emilio Tagua | 2010-09-27 | 1 | -1/+1 |
| | |||||
* | application.js should be the last file on javascript_include_tag(:all) | Santiago Pastorino | 2010-09-19 | 1 | -8/+8 |
| | |||||
* | Added ability to set asset_path for engines | Piotr Sarnacki | 2010-09-03 | 1 | -0/+23 |
| | |||||
* | Tidy up asset tag a bit and make railties tests green again. | José Valim | 2010-06-23 | 1 | -2/+2 |
| | |||||
* | refactored the javascript asset tag helpers and moved the default scripts ↵ | Josh Kalderimis | 2010-06-23 | 1 | -15/+7 |
| | | | | | | setup within the railtie Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Updating image_tag to support cid:content_id "URLs" | Mikel Lindsaar | 2010-06-07 | 1 | -0/+9 |
| | |||||
* | Accept :alt => nil on image_tag [#4558 state:resolved] | Marc-Andre Lafortune | 2010-05-15 | 1 | -1/+2 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | adds #favicon_link_tag back, rdoc explains why it is useful, and how to get ↵ | Xavier Noria | 2010-04-08 | 1 | -0/+12 |
| | | | | a link for Mobile Safari with it | ||||
* | Revert "adds #favicon_link_tag and #apple_touch_icon_link_tag" -- these tags ↵ | David Heinemeier Hansson | 2010-04-08 | 1 | -20/+0 |
| | | | | | | are too specific. This reverts commit 6891f46d10957f21f200fc4dc2b6076ff411b1da, ec8610cfdc32d0fe816fb22405e00ef1b6c90d73, and d18ff1b7efd96e7c08bc1a15137735be45f87e07. | ||||
* | adds a default source to #apple_touch_icon_link_tag | Xavier Noria | 2010-04-07 | 1 | -0/+1 |
| | |||||
* | new helpers #favicon_link_tag and #apple_touch_icon_link_tag | Xavier Noria | 2010-04-07 | 1 | -0/+19 |
| | |||||
* | Refactored url_for in AV to have its own instances of the helpers instead of ↵ | wycats | 2010-04-03 | 1 | -15/+11 |
| | | | | proxying back to the controller. This potentially allows for more standalone usage of AV. It also kicked up a lot of dust in the tests, which were mocking out controllers to get this behavior. By moving it to the view, it made a lot of the tests more standalone (a win) | ||||
* | Updated asset_template_path to asset_path and have it also support a String ↵ | wycats | 2010-03-28 | 1 | -1/+8 |
| | | | | [#4247 state:resolved] | ||||
* | Allow customisation of asset path generation using a proc. | Craig R Webster | 2010-03-28 | 1 | -0/+9 |
| | | | | | | | | | | | | | | | | Set config.action_controller.asset_path_template to a proc that takes one argument - the direct, unchanged asset path - and returns a path to that asset using the scheme that your assets require. This is useful if you have a setup which scales by introducing new application servers where the mtime of the asset files may not be the same as those of the asset files on your previous servers, but it does require your web servers to have knowledge of the asset template paths that you rewrite to so it's not suitable for out-of-the-box use. An example of configuring asset path generation and rewriting these paths using Apache is included in actionpack/lib/action_view/helpers/asset_tag_helper.rb. Signed-off-by: wycats <wycats@gmail.com> | ||||
* | There's a Ruby issue with File.basename different versions returns different ↵ | Santiago Pastorino | 2010-03-14 | 1 | -1/+0 |
| | | | | things, so we shouldn't test that | ||||
* | Made asset_tag_helper use config.perform_caching instead of ↵ | Denis Odorcic | 2010-03-12 | 1 | -18/+18 |
| | | | | | | ActionController::Base.perform_caching Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Fix test | Jeremy Kemper | 2010-03-11 | 1 | -1/+1 |
| | |||||
* | simplify alt tag generation for images | Eaden McKee | 2010-03-11 | 1 | -1/+4 |
| | | | | | | [#2837 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Move stuff from compatibility.rb to deprecated.rb | Carlhuda | 2010-03-04 | 1 | -1/+0 |
| | |||||
* | Fix a bunch of failing AP / AM specs created from the previous ↵ | Carl Lerche | 2010-03-04 | 1 | -27/+15 |
| | | | | AbstractController configuration refactor. | ||||
* | Move the original config method onto AbstractController | Carl Lerche | 2010-03-03 | 1 | -1/+1 |
| | |||||
* | Start refactoring the method of configuring ActionView | Carlhuda | 2010-03-03 | 1 | -12/+2 |
| | |||||
* | Work on deprecating ActionController::Base.relative_url_root | Carlhuda | 2010-03-03 | 1 | -20/+18 |
| | |||||
* | Include prototype ujs adapter with new apps | Joshua Peek | 2010-01-30 | 1 | -8/+7 |
| | |||||
* | Revert "fixed tests to also look for rails.js when using ↵ | Joshua Peek | 2010-01-30 | 1 | -7/+7 |
| | | | | | | javascript_include_tag :defaults" This reverts commit 7f181e475080924164b3fa0071ee4898bd66cbb8. | ||||
* | fixed tests to also look for rails.js when using javascript_include_tag ↵ | Erik St. Martin | 2010-01-29 | 1 | -7/+7 |
| | | | | :defaults | ||||
* | Start adding configuration to ActionView instead of using constants. | Yehuda Katz | 2009-10-14 | 1 | -0/+10 |
| | | | | | | | By using config rather than hardcoded constants, we can evolve the configuration system over time (we'd just need to update the config method with more robust capabilities and all consumers would get the capabilities with no code changes) | ||||
* | Switch to on-by-default XSS escaping for rails. | Michael Koziarski | 2009-10-08 | 1 | -0/+12 |
| | | | | | | | | | | | | This consists of: * String#html_safe! a method to mark a string as 'safe' * ActionView::SafeBuffer a string subclass which escapes anything unsafe which is concatenated to it * Calls to String#html_safe! throughout the rails helpers * a 'raw' helper which lets you concatenate trusted HTML from non-safety-aware sources (e.g. presantized strings in the DB) * New ERB implementation based on erubis which uses a SafeBuffer instead of a String Hat tip to Django for the inspiration. | ||||
* | Don't raise exceptions for missing javascript_include_tag or ↵ | Sam Pohlenz | 2009-09-03 | 1 | -4/+58 |
| | | | | | | stylesheet_link_tag sources unless the :cache or :concat options are given. [#2738 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | Make sure javascript_include_tag/stylesheet_link_tag does not append ".js" ↵ | Matthew Rudy Jacobs | 2009-08-05 | 1 | -2/+6 |
| | | | | | | or ".css" onto external urls [#1664 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Fix tag helpers so that all HTML element boolean attributes render according ↵ | Marc Love | 2009-07-30 | 1 | -4/+4 |
| | | | | | | to the specs. Added all boolean attributes listed in the XHTML 1.0 specs (http://www.w3.org/TR/xhtml1/guidelines.html) and HTML 5 specs (http://www.whatwg.org/specs/web-apps/current-work). HTML 5 boolean attribute rendering was broken in commit 1e2d7229602f467cfdc0ef606b5ef8a5566a1501 / [#2864 state:resolved]. Signed-off-by: Yehuda Katz <wycats@gmail.com> | ||||
* | Adds a audio_tag helper for the HTML5 audio tag. Fixed video_path docs. HTML ↵ | Emilio Tagua | 2009-07-07 | 1 | -4/+36 |
| | | | | | | attributes values should be true or false not attribute's name. [#2864 state:resolved] Signed-off-by: Yehuda Katz <wycats@yehuda-katzs-macbookpro41.local> | ||||
* | Adds a video_tag helper for the HTML5 video tag (similar to how the ↵ | Tieg Zaharia | 2009-07-02 | 1 | -2/+41 |
| | | | | | | image_tag works) (tests included); removes a duplicate test line for image_tag; adds boolean attributes for video tag to tag()'s boolean attributes Signed-off-by: Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com> | ||||
* | Handle missing javascript/stylesheets assets by raising an exception | Christos Zisopoulos | 2009-06-26 | 1 | -30/+88 |
| | | | | | | | | | | | | An exception will be raised if a local javascript/stylesheet file included by the stylesheet_link_tag or javascript_include_tag can not be found. When caching is enabled, we use atomic_write to ensure that the cache file is not created with zero length. Signed-off-by: Michael Koziarski <michael@koziarski.com> [#2738 state:committed] | ||||
* | Add :concat option to asset tag helpers to force concatenation. | Joshua Peek | 2009-06-15 | 1 | -0/+30 |
| | | | | | This is useful for working around IE's stylesheet limit. stylesheet_link_tag :all, :concat => true | ||||
* | allow absolute paths for the asset caches | Andrew Kaspick | 2009-06-11 | 1 | -0/+16 |
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> |