Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Support for HTML5 data elements in content_for

#3516

I've added support for HTML5 data elements in content_for

For example:

<% content_tag_for(:li, @person, :data => [:first_name, :last_name]) %>...

would produce the following HTML (assuming @person has the methods first_name and last_name):

<li id="person_123" data-first_name="David" data-last_name="Heinemeier Hansson">...

I've attached a patches for master and 2-3-stable

Reported by Erin Staniland · November 28th, 2009 @ 02:32 PM

State: stale
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. Erin Staniland
    Erin Staniland
    • Tag changed from actionview, content_for, html5 to actionview, content_for, html5, patch

    November 28th, 2009 @ 02:46 PM

  2. Rohit Arondekar
    Rohit Arondekar
    • State changed from new to stale
    • Importance changed from to

    Marking ticket as stale. If this is still an issue please leave a comment with suggested changes, creating a patch with tests, rebasing an existing patch or just confirming the issue on a latest release or master/branches.

    October 6th, 2010 @ 06:29 AM