Created
February 18, 2012 19:20
-
-
Save anonymous/1860713 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
## AJAX: | |
text = $('#URL').val() | |
$.ajax | |
url: ($ this).data 'update-path' | |
type: 'POST' | |
data: 'url=' + text; | |
dataType: 'script' | |
# Controller: | |
@url = params[:url] | |
STDERR.puts @url | |
# Output of controller is: | |
http://www.example.com/forum/viewtopic.php?f=23 | |
BUT I send this URL: | |
http://www.example.com/forum/viewtopic.php?f=23&t=1330 | |
So URL gets cut by the & it seems. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment