module BodyId::Helper
Public Instance Methods
body_id()
click to toggle source
# File lib/body_id/helper.rb, line 5 def body_id controller = controller_name.singularize.underscore action = action_name.underscore body_id = "#{ controller }-#{ action }".gsub(/_/, '-') # Controller declared instance variable # or helper generated string @body_id || body_id end