you could just do 
(params[:redirect] || game_levels_url) and you don't need a ?: