Hi, I am working on a the largest rails project I have worked on before. It’s large in terms of how many different directions the application can flow, so there will be many different views. How are people using rails to do the workflow on larger projects?
It is getting too tedious in the controller to have code like:
if @result ==1
render :action => ‘page1’
elsif @result ==2
render :action => ‘otherpage’
else
render :action => ‘returnpage’
How are rails developers managing these kinds of flows?
I would appreciate any suggestions.