You are trying to access params which is rails inside a view html code. You need to put a rails tag . for ex smtin like dis :
<div class="view" onclick="location.href='/structures/3?locale=%Q<%= params[:wateva] %>%Q'">
This will make the link as /structures/3?locale=%Qparams_wateva_value%Q
Don't exactly know why you need the %Q at the start and the end.