This project is archived and is in readonly mode.
auto_discovery_link_tag does not insert html in <HEAD>
Reported by Neil Middleton | February 10th, 2010 @ 02:55 PM
The auto_discovery_link_tag quite often can cause invalid HTML
as it always outputs HTML directly.
For the HTML to be valid, the output should always be in the HTML
HEAD.
I'm not entirely sure how this would be implemented, but it seems a relatively simple rule to satisfy to ensure valid HTML.
Comments and changes to this ticket
-
Yaroslav Markin April 10th, 2010 @ 07:51 PM
- Tag changed from actionview to actionview, invalid
You can use http://apidock.com/rails/ActionView/Helpers/TagHelper/content_tag and
yield
in your layout template to implement that. The helper works just fine -- it outputs HTML where asked. -
Jeremy Weiskotten April 11th, 2010 @ 03:56 AM
- Tag changed from actionview, invalid to actionview
This is analogous to javascript_include_tag or stylesheet_link_tag. It's up to the application developer to call the helper in the correct place in their template.
-
Santiago Pastorino April 11th, 2010 @ 09:01 AM
- State changed from new to invalid
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>