This project is archived and is in readonly mode.
dom_id doc patch
Reported by Andrew Kaspick | June 17th, 2008 @ 07:34 AM
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".
Comments and changes to this ticket
-
Repository June 17th, 2008 @ 08:33 AM
- State changed from new to resolved
(from [322f3eacf9279ae7c9f3ce2560f241c7377005dc]) Correct code example in dom_id docs. [#437 state:resolved]
-
Repository June 17th, 2008 @ 08:34 AM
(from [4d83e9d737a703b3634d0163599bdbede0500c31]) Correct code example in dom_id docs. [#437 state:resolved]
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>