Skip to content
Browse files

Default body title and class attributes now output valid HTML when us…

…ed with namespaced controllers
  • Loading branch information...
1 parent 309412f commit 66cf1caf84165a192424ef58387c89a5b7234096 Mike Pepper committed with Sep 28, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/lovely_layouts.rb
View
4 lib/lovely_layouts.rb
@@ -65,11 +65,11 @@ def body(*args, &block)
protected
def default_body_id
- params[:controller]
+ params[:controller].gsub('/','_')
end
def default_body_class
- [params[:controller], params[:action]].join(" ")
+ [params[:controller], params[:action]].join(" ").gsub('/','_')
end

0 comments on commit 66cf1ca

Please sign in to comment.
Something went wrong with that request. Please try again.