Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | provide better error message if path is uri [#5914 state:resolved] | Neeraj Singh | 2010-11-11 | 1 | -3/+5 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Call html_escape in ERB::Util module and don't mix it in in the helpers | Santiago Pastorino | 2010-10-18 | 1 | -1/+2 |
| | |||||
* | Merge branch 'master' of git://github.com/lifo/docrails | Xavier Noria | 2010-10-11 | 1 | -3/+0 |
|\ | |||||
| * | Remove mention to register_javascript_include_default in documentation | Ryan Bigg | 2010-10-11 | 1 | -3/+0 |
| | | |||||
* | | Fix example that became outdated after a code change. | Andrea Campi | 2010-10-09 | 1 | -1/+1 |
|/ | | | | | | [#5770 state:resolved] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Assume compute_asset_host returns reasonable values. | thedarkone | 2010-09-27 | 1 | -1/+1 |
| | |||||
* | Do a single string interpolation. | thedarkone | 2010-09-27 | 1 | -1/+1 |
| | |||||
* | Simple .empty? test will do fine here (rails_asset_id returns nice strings). | thedarkone | 2010-09-27 | 1 | -1/+1 |
| | |||||
* | Make asset extension rewriting faster. | thedarkone | 2010-09-27 | 1 | -5/+11 |
| | |||||
* | Optimize relative_url_root rewriting code. | thedarkone | 2010-09-27 | 1 | -3/+5 |
| | |||||
* | application.js should be the last file on javascript_include_tag(:all) | Santiago Pastorino | 2010-09-19 | 1 | -1/+1 |
| | |||||
* | append asset IDs to the examples of the RDoc of #javascript_include_tag, and ↵ | Xavier Noria | 2010-09-10 | 1 | -32/+32 |
| | | | | quick edit pass | ||||
* | Added ability to set asset_path for engines | Piotr Sarnacki | 2010-09-03 | 1 | -0/+3 |
| | |||||
* | Tidy up asset tag a bit and make railties tests green again. | José Valim | 2010-06-23 | 1 | -24/+14 |
| | |||||
* | refactored the javascript asset tag helpers and moved the default scripts ↵ | Josh Kalderimis | 2010-06-23 | 1 | -14/+5 |
| | | | | | | setup within the railtie Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | removed 'unless const_defined?' code smell | Josh Kalderimis | 2010-06-21 | 1 | -1/+1 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Adds title and description where needed. | Rizwan Reza | 2010-06-16 | 1 | -0/+1 |
| | |||||
* | Updating image_tag to support cid:content_id "URLs" | Mikel Lindsaar | 2010-06-07 | 1 | -2/+5 |
| | |||||
* | fix documentation typo | Marius Nuennerich | 2010-05-18 | 1 | -2/+2 |
| | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Accept :alt => nil on image_tag [#4558 state:resolved] | Marc-Andre Lafortune | 2010-05-15 | 1 | -1/+1 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Fix a typo in the documentation. [#4318 state:resolved] | Craig R Webster | 2010-04-12 | 1 | -1/+1 |
| | | | Signed-off-by: wycats <wycats@gmail.com> | ||||
* | image_path -> path_to_image in a couple of places, plus motivation for ↵ | Xavier Noria | 2010-04-09 | 1 | -10/+13 |
| | | | | path_to_image in rdoc | ||||
* | adds #favicon_link_tag back, rdoc explains why it is useful, and how to get ↵ | Xavier Noria | 2010-04-08 | 1 | -0/+34 |
| | | | | 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 | -44/+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 | -6/+12 |
| | |||||
* | new helpers #favicon_link_tag and #apple_touch_icon_link_tag | Xavier Noria | 2010-04-07 | 1 | -0/+38 |
| | |||||
* | Updated asset_template_path to asset_path and have it also support a String ↵ | wycats | 2010-03-28 | 1 | -10/+11 |
| | | | | [#4247 state:resolved] | ||||
* | Allow customisation of asset path generation using a proc. | Craig R Webster | 2010-03-28 | 1 | -2/+66 |
| | | | | | | | | | | | | | | | | 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> | ||||
* | Merge branch 'master' into docrails | wycats | 2010-03-26 | 1 | -26/+23 |
|\ | |||||
| * | cleans a bit #compute_public_path | Xavier Noria | 2010-03-19 | 1 | -26/+23 |
| | | | | | | | | | | | | [#4232 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | | Updated ActionController::Base.asset_host example | retr0h | 2010-03-25 | 1 | -2/+2 |
|/ | | | | | | | | The example provided contrived. It is not useful when wanting to use 1-based asset hosts (since it would generate a random asset host for the same asset). Signed-off-by: Rizwan Reza <rizwanreza@gmail.com> | ||||
* | Made asset_tag_helper use config.perform_caching instead of ↵ | Denis Odorcic | 2010-03-12 | 1 | -14/+14 |
| | | | | | | ActionController::Base.perform_caching Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | simplify alt tag generation for images | Eaden McKee | 2010-03-11 | 1 | -2/+2 |
| | | | | | | [#2837 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Fix a bunch of failing AP / AM specs created from the previous ↵ | Carl Lerche | 2010-03-04 | 1 | -1/+1 |
| | | | | AbstractController configuration refactor. | ||||
* | Start refactoring the method of configuring ActionView | Carlhuda | 2010-03-03 | 1 | -7/+0 |
| | |||||
* | Work on deprecating ActionController::Base.relative_url_root | Carlhuda | 2010-03-03 | 1 | -2/+2 |
| | |||||
* | For performance reasons, you can no longer call html_safe! on Strings. ↵ | Yehuda Katz | 2010-01-31 | 1 | -3/+3 |
| | | | | | | | | | | | | 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. | ||||
* | Include prototype ujs adapter with new apps | Joshua Peek | 2010-01-30 | 1 | -1/+1 |
| | |||||
* | Revert "Add rails.js driver to default source list" | Joshua Peek | 2010-01-30 | 1 | -1/+1 |
| | | | | This reverts commit 8a46e1182e3fce36aee5e6cb65737c4e755bbced. | ||||
* | Add rails.js driver to default source list | Joshua Peek | 2010-01-29 | 1 | -1/+1 |
| | |||||
* | Make @controller an internal ivar in the view | Joshua Peek | 2010-01-22 | 1 | -4/+4 |
| | |||||
* | Start adding configuration to ActionView instead of using constants. | Yehuda Katz | 2009-10-14 | 1 | -12/+16 |
| | | | | | | | 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 | -3/+3 |
| | | | | | | | | | | | | 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 force test suite to use bundler | Joshua Peek | 2009-09-13 | 1 | -0/+1 |
| | |||||
* | Don't raise exceptions for missing javascript_include_tag or ↵ | Sam Pohlenz | 2009-09-03 | 1 | -2/+6 |
| | | | | | | 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 | -10/+14 |
| | | | | | | 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 | -1/+1 |
| | | | | | | 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 | -3/+35 |
| | | | | | | attributes values should be true or false not attribute's name. [#2864 state:resolved] Signed-off-by: Yehuda Katz <wycats@yehuda-katzs-macbookpro41.local> | ||||
* | Removed unnecessary calls to image_path and hash lookups [#2827 state:resolved] | Yehuda Katz + Carl Lerche | 2009-07-02 | 1 | -3/+3 |
| | |||||
* | Adds a video_tag helper for the HTML5 video tag (similar to how the ↵ | Tieg Zaharia | 2009-07-02 | 1 | -0/+67 |
| | | | | | | 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> |