Remove slashes from body css classes
This commit is contained in:
parent
2c1428c9ad
commit
44843c1dd7
1 changed files with 2 additions and 1 deletions
|
@ -37,7 +37,8 @@ module ApplicationHelper
|
||||||
if content_for? :body_class
|
if content_for? :body_class
|
||||||
content_for :body_class
|
content_for :body_class
|
||||||
else
|
else
|
||||||
"#{params[:controller]} #{params[:controller]}-#{params[:action]}"
|
controller_part = params[:controller].tr("/", "-")
|
||||||
|
"#{controller_part} #{controller_part}-#{params[:action]}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue