have ruled out the respond_to |do| method I found on Stack Overflow. Didnt help at all