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.

singular_class_name -> dom_class

#10

Enviroment: Rails 3.2 Ruby 1.9.2

showhide_helper.rb

line 81

solution:

from:
def normalize_class_name object

  if object.kind_of?(ActiveRecord::Base)
    ActionController::RecordIdentifier.singular_class_name(object)
  else
    object.to_s
  end

end

to:
def normalize_class_name object

  if object.kind_of?(ActiveRecord::Base)
    ActionController::RecordIdentifier.dom_class(object)
  else
    object.to_s
  end
end

Reported by gundestrup · June 2nd, 2012 @ 09:45 AM

State: new
Milestone: none

Activity

No comments yet.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.