Skip to content

Instantly share code, notes, and snippets.

@cschneid
Created August 2, 2008 15:48
Show Gist options
  • Save cschneid/3745 to your computer and use it in GitHub Desktop.
Save cschneid/3745 to your computer and use it in GitHub Desktop.
## TODO: Make this DRY!!
get '/:channel' do
@channel = params[:channel]
redirect "/#{@channel}/#{relative_day('today')}"
end
## TODO: Make this DRY!!
get '/:channel/' do
@channel = params[:channel]
redirect "/#{@channel}/#{relative_day('today')}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment