Created
May 5, 2010 08:44
-
-
Save anoras/390544 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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