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.

dom_id doc patch

#437

dom_id(Post.new(:id => 45)) # post_45

This is not possible as :id is a protected attribute and can't be assigned to, so the original example will always generate "new_post".

Reported by Andrew Kaspick · June 17th, 2008 @ 07:34 AM

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

Activity

  1. Repository
    Repository
    • State changed from new to resolved

    (from [322f3eacf9279ae7c9f3ce2560f241c7377005dc]) Correct code example in dom_id docs. [#437 state:resolved]

    http://github.com/rails/rails/co...

    June 17th, 2008 @ 08:33 AM

  2. Repository
    Repository

    (from [4d83e9d737a703b3634d0163599bdbede0500c31]) Correct code example in dom_id docs. [#437 state:resolved]

    http://github.com/rails/rails/co...

    June 17th, 2008 @ 08:34 AM