Just generate the body class from a helper instead of using `if` statement here.  I'd also recommend adding a controller and action class to each body.

helper ...
```ruby
def body_classes

end
```