Skip to content

Instantly share code, notes, and snippets.

@stevegraham
Created February 8, 2011 21:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevegraham/817308 to your computer and use it in GitHub Desktop.
Save stevegraham/817308 to your computer and use it in GitHub Desktop.
class IVRMenuController
respond_to :voice
def index
case params['Digits']
when '1' then render :template => 'directions'
when '2' then render :template => 'opening_hours'
when '3' then render :template => 'special_offers'
else render :template => 'welcome'
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment