aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/asset_tag_helper.rb
Commit message (Collapse)AuthorAgeFilesLines
* reorganised the the common asset helpers module into a class and have it ↵Josh Kalderimis2010-11-161-6/+9
| | | | include the id caching module, this class is now shared from the view instance to the asset include tag helpers (js and css)
* incorporated most of the feedback from JoséJosh Kalderimis2010-11-161-2/+239
|
* reduced duplication between the javascript and stylesheet asset tag methods, ↵Josh Kalderimis2010-11-161-8/+1
| | | | also split the asset id caching methods into a separate module for easy inclusion and use by the asset include tag class and base asset tag helpers
* separated the asset id methods to a separate module, removed some dupliation ↵Josh Kalderimis2010-11-161-405/+4
| | | | with the various path methods, and moved the base asset tag methods to a base module so the asset id module can play nice with the path generation
* split the javascript and stylesheet tag helpers into separate files as a ↵Josh Kalderimis2010-11-161-313/+4
| | | | precusor before removing the duplication between the two
* provide better error message if path is uri [#5914 state:resolved]Neeraj Singh2010-11-111-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 helpersSantiago Pastorino2010-10-181-1/+2
|
* Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2010-10-111-3/+0
|\
| * Remove mention to register_javascript_include_default in documentationRyan Bigg2010-10-111-3/+0
| |
* | Fix example that became outdated after a code change.Andrea Campi2010-10-091-1/+1
|/ | | | | | [#5770 state:resolved] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Assume compute_asset_host returns reasonable values.thedarkone2010-09-271-1/+1
|
* Do a single string interpolation.thedarkone2010-09-271-1/+1
|
* Simple .empty? test will do fine here (rails_asset_id returns nice strings).thedarkone2010-09-271-1/+1
|
* Make asset extension rewriting faster.thedarkone2010-09-271-5/+11
|
* Optimize relative_url_root rewriting code.thedarkone2010-09-271-3/+5
|
* application.js should be the last file on javascript_include_tag(:all)Santiago Pastorino2010-09-191-1/+1
|
* append asset IDs to the examples of the RDoc of #javascript_include_tag, and ↵Xavier Noria2010-09-101-32/+32
| | | | quick edit pass
* Added ability to set asset_path for enginesPiotr Sarnacki2010-09-031-0/+3
|
* Tidy up asset tag a bit and make railties tests green again.José Valim2010-06-231-24/+14
|
* refactored the javascript asset tag helpers and moved the default scripts ↵Josh Kalderimis2010-06-231-14/+5
| | | | | | setup within the railtie Signed-off-by: José Valim <jose.valim@gmail.com>
* removed 'unless const_defined?' code smellJosh Kalderimis2010-06-211-1/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Adds title and description where needed.Rizwan Reza2010-06-161-0/+1
|
* Updating image_tag to support cid:content_id "URLs"Mikel Lindsaar2010-06-071-2/+5
|
* fix documentation typoMarius Nuennerich2010-05-181-2/+2
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Accept :alt => nil on image_tag [#4558 state:resolved]Marc-Andre Lafortune2010-05-151-1/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Fix a typo in the documentation. [#4318 state:resolved]Craig R Webster2010-04-121-1/+1
| | | Signed-off-by: wycats <wycats@gmail.com>
* image_path -> path_to_image in a couple of places, plus motivation for ↵Xavier Noria2010-04-091-10/+13
| | | | path_to_image in rdoc
* adds #favicon_link_tag back, rdoc explains why it is useful, and how to get ↵Xavier Noria2010-04-081-0/+34
| | | | a link for Mobile Safari with it
* Revert "adds #favicon_link_tag and #apple_touch_icon_link_tag" -- these tags ↵David Heinemeier Hansson2010-04-081-44/+0
| | | | | | are too specific. This reverts commit 6891f46d10957f21f200fc4dc2b6076ff411b1da, ec8610cfdc32d0fe816fb22405e00ef1b6c90d73, and d18ff1b7efd96e7c08bc1a15137735be45f87e07.
* adds a default source to #apple_touch_icon_link_tagXavier Noria2010-04-071-6/+12
|
* new helpers #favicon_link_tag and #apple_touch_icon_link_tagXavier Noria2010-04-071-0/+38
|
* Updated asset_template_path to asset_path and have it also support a String ↵wycats2010-03-281-10/+11
| | | | [#4247 state:resolved]
* Allow customisation of asset path generation using a proc.Craig R Webster2010-03-281-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 docrailswycats2010-03-261-26/+23
|\
| * cleans a bit #compute_public_pathXavier Noria2010-03-191-26/+23
| | | | | | | | | | | | [#4232 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* | Updated ActionController::Base.asset_host exampleretr0h2010-03-251-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 Odorcic2010-03-121-14/+14
| | | | | | ActionController::Base.perform_caching Signed-off-by: José Valim <jose.valim@gmail.com>
* simplify alt tag generation for imagesEaden McKee2010-03-111-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 Lerche2010-03-041-1/+1
| | | | AbstractController configuration refactor.
* Start refactoring the method of configuring ActionViewCarlhuda2010-03-031-7/+0
|
* Work on deprecating ActionController::Base.relative_url_rootCarlhuda2010-03-031-2/+2
|
* For performance reasons, you can no longer call html_safe! on Strings. ↵Yehuda Katz2010-01-311-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 appsJoshua Peek2010-01-301-1/+1
|
* Revert "Add rails.js driver to default source list"Joshua Peek2010-01-301-1/+1
| | | | This reverts commit 8a46e1182e3fce36aee5e6cb65737c4e755bbced.
* Add rails.js driver to default source listJoshua Peek2010-01-291-1/+1
|
* Make @controller an internal ivar in the viewJoshua Peek2010-01-221-4/+4
|
* Start adding configuration to ActionView instead of using constants.Yehuda Katz2009-10-141-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 Koziarski2009-10-081-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 bundlerJoshua Peek2009-09-131-0/+1
|
* Don't raise exceptions for missing javascript_include_tag or ↵Sam Pohlenz2009-09-031-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>