You could move tag to a private method that gets lazily evaluated.

```
private

def tag
 @tag ||= Tag.find_by_name(params[:tag])
end

```