Forums Ruby

Sample Recursive Partial Usage

Subscribe to Sample Recursive Partial Usage 3 post(s), 1 voice

 
Avatar Anthony Navarre 8 post(s)

From the Sept. 12 meeting, here’s a look at how one might go about displaying a nested list of threaded (acts_as_tree) comments that might be attached to a article.

http://pastie.textmate.org/96686

 
Avatar Anthony Navarre 8 post(s)

Hey just wanted to add a quick note:

At the meeting I mentioned that putting a

tag inside of a

  • tag is “bad semantics.” However, I was completely wrong!

    In fact, using one of the most important HTML tools known to man , p tags within li tags validate just fine with no complaints.

    So, for all those here who may be new to HTML, or who are just looking to improve your proficiency and accuracy with HTML, check out what everyone has to say about it.

    PS: I seem to vaguely recall that years ago I stumbled upon some legitimate reasons for avoiding this particular markup, but for the life of me I cannot recall what it was.

  •  
    Avatar Anthony Navarre 8 post(s)

    Of course Beast ate my HTML … I should have known better! That should be:

    ”... putting a p tag inside of a li tag …”

    Forums Ruby