well, first thing that comes to my mind is this:
should_render = {1 => 'page1', 'other_value' => 'otherpage', 'yet_another', => 'anotherpage', :default => 'returnpage' }
if should_render.include? result
render :action => should_render[result]
else
render :action => should_render[:default]
end
and of course you could bring the should_render hash from the Application Controller or anywhere else. Hope it helps.
Mxg – Maximiliano Guzman