search for: blog_post_auto_completer

Displaying 1 result from an estimated 1 matches for "blog_post_auto_completer".

2008 Jul 17
4
A Mongrel parsing bug: "&" and "&"
When using url_for to send path to a script (such as with auto_complete), multiple params are joined with the "&" code. For example: text_field_with_auto_complete :blog :post, {}, { :posts_path(:a => 1, :b => 2), :method => :get } Produces this script: var blog_post_auto_completer = new Ajax.Autocompleter(''blog_post'', ''blog_post_auto_complete'', ''/posts.js?a=1&b=2'', {method:''get''}) Notice that "&" in the path. When sent to the server, it get parsed as "a=1" and "...