Skip to content

Instantly share code, notes, and snippets.

@anoras
Created May 5, 2010 08:44
Show Gist options
  • Save anoras/390544 to your computer and use it in GitHub Desktop.
Save anoras/390544 to your computer and use it in GitHub Desktop.
# routes.rb
# You can do this:
map.connect '/something/*email', :controller => 'something', :action=> 'some_action'
# ...to get the email parameter as an array.
# Then you can do this in your controller:
# something_controller.rb
email_address = params[:email][0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment