It's probably cleaner to use the non-block form of content_for here:

```ruby
<% content_for :body_classes, "search" %>
```