singular_class_name -> dom_class
Reported by gundestrup | June 2nd, 2012 @ 09:45 AM
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
No comments found
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Rails Widgets is a collection of UI widgets for Ruby On Rails that you can put in your own application at the speed of light!