How to enable routing if agreement parameter equals 1 to agreement and othwerwise to options ? See example: def select @imitem = Imitem.find(params[:id]) if (@imitem.update_attributes(params[:agreement])) redirect_to :action => ''agreement'', :id => @imitem else render :action => ''options'', :id => @imitem end end --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---