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 is unavailable in controllers

#3040

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.

Reported by Rick · August 12th, 2009 @ 06:39 AM

State: committed
Milestone: 3.0.2
Assigned to: Yehuda Katz (wycats) Yehuda Katz (wycats)
Importance: none

Activity

  1. Justin Ko
    Justin Ko
    • Assigned user set to Rick
    • Tag set to patch

    February 26th, 2010 @ 07:22 PM

  2. Jeremy Kemper
    Jeremy Kemper
    • State changed from new to open
    • Assigned user changed from Rick to Yehuda Katz (wycats)

    Regression. The patch removes a railties test instead of fixing it, though.

    March 7th, 2010 @ 10:30 PM

  3. Santiago Pastorino
  4. Santiago Pastorino
  5. Repository
    Repository
    • State changed from open to committed

    March 9th, 2010 @ 06:49 PM

  6. Jeremy Kemper
    Jeremy Kemper
    • Milestone set to 3.0.2
    • Importance changed from to

    October 15th, 2010 @ 11:01 PM