This project is archived and is in readonly mode.

#3040 ✓committed
Rick

dom_id is unavailable in controllers

Reported by Rick | August 12th, 2009 @ 06:39 AM | in 3.0.2

I can't use dom_id in controllers anymore.

format.html do
  redirect_to(forum_topic_post_path(@forum, @topic, @post, :anchor => dom_id(@post)))
end

http://github.com/courtenay/altered_beast/blob/d327bb75ca4d9cd1a95c...

All I had to do was manually include ActionController::RecordIdentifier into ActionController::Base. That's the easiest fix, but I wonder if this was taken out on purpose since #dom_id is primarily used in views.

Comments and changes to this ticket

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>

Tags

Referenced by

Pages