I'm using button_to
inside the presenter. This works fine. However if I create a block I receive the error
undefined method `stringify_keys'
I'm wondering if it's even possible to use a button_to
block outside of a view file.
# Inside my presenter class
# The line below causes the error
button_to 'Big Button', '/', {} do
link_to('Home', '/', { })
end.html_safe
How can I fix this? Am I missing something rather obvious?