Is there a way I can test for both these params to be true
? Some sort of wildcard value for the first key?
params[:book][:return_to]
params[:work][:return_to]
At the moment I'm having to do:
if params[:book] and params[:book][:return_to]
# blah
elsif params[:work] and params[:work][:return_to]
# blah