I am looking for the keyword "admin" in this array :
params[:controller] = ["admin","organizations"]
So I wrote this :
params[:controller].split(/\//).each{|a|a.match(/admin/)}
But this puzzlingly returns :
["admin", "organizations"]
What correct syntax am I missing here?
Why not use